Share via


RichImageSelector.DisplayWidth Property

Sets the ImageFieldValuewidth if the value is set to an integer greater than 0.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<BrowsableAttribute(True)> _
Public Property DisplayWidth As Integer
    Get
    Set
'Usage
Dim instance As RichImageSelector
Dim value As Integer

value = instance.DisplayWidth

instance.DisplayWidth = value
[BrowsableAttribute(true)]
public int DisplayWidth { get; set; }

Property Value

Type: System.Int32

Remarks

When the DisplayWidth property is set, the UI that enables editing of the height and width properties of an image is disabled. If the DisplayHeight property is not set, then only the Width value will be controlled and the Height value will follow the aspect ratio when rendered in the browser.

See Also

Reference

RichImageSelector Class

RichImageSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

DisplayWidth