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)
Available in Sandboxed Solutions: No

Syntax

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

value = instance.Dir

instance.Dir = value
[ObsoleteAttribute("Use Direction instead.")]
[WebPartStorageAttribute(Storage.Personal)]
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