WebPart.Dir property

NOTE: This API is now obsolete.

Gets or sets the direction of the reading order for a Web Part's text and frame. Setting this value overrides the value specified for the System.Web.UI.Page.Culture property.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<WebPartStorageAttribute(Storage.Personal)> _
<ObsoleteAttribute("Use Direction instead.")> _
Public Property Dir As Direction
    Get
    Set
'Usage
Dim instance As WebPart
Dim value As Direction

value = instance.Dir

instance.Dir = value
[WebPartStorageAttribute(Storage.Personal)]
[ObsoleteAttribute("Use Direction instead.")]
public Direction Dir { get; set; }

Property value

Type: Microsoft.SharePoint.WebPartPages.Direction
A Direction enumeration value that specifies the language direction for the content text and Web Part frame. The default value is determined by the value of the system Culture property.

Remarks

This property can be personalized by individual users. Its WebPartStorageAttribute value is Storage.Personal, which specifies that the property can be stored on a per-user basis. Only users with the Personalize Web Part pages right can set this property. It can be set programmatically, or it can be set through the Web Part task pane in the personal view of the Web-based user interface, or by using a SharePoint Foundation-compatible HTML editor, such as SharePoint Designer.

See also

Reference

WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace