Share via


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

<WebPartStorageAttribute(Storage.Personal)> _
<ObsoleteAttribute("Use Direction instead.")> _
Public Property Dir As Direction
    Get
    Set

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 Windows SharePoint Services-compatible HTML editor, such as Microsoft Office SharePoint Designer 2007.

See Also

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.WebPartPages Namespace