Share via


RichImageField.DisplayWidth Property

If this property is set to an integer greater than 0, the ImageFieldValue.Width property is forced to this value.

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 RichImageField
Dim value As Integer

value = instance.DisplayWidth

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

Property Value

Type: System.Int32

Remarks

The user interface (UI) used to edit the height and width properties of the image are also disabled. If the DisplayHeight property is not also set, then only the Width value is controlled and the Height value follows the aspect ratio when rendered in the Web browser.

See Also

Reference

RichImageField Class

RichImageField Members

Microsoft.SharePoint.Publishing.WebControls Namespace

RichImageField