Share via


RichImageField.DisplayHeight Property

If this property is set to an integer greater than 0, the ImageFieldValue.Height 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 DisplayHeight As Integer
    Get
    Set
'Usage
Dim instance As RichImageField
Dim value As Integer

value = instance.DisplayHeight

instance.DisplayHeight = value
[BrowsableAttribute(true)]
public int DisplayHeight { 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 DisplayWidth property is not also set, then only the Height value is controlled and the Width value follows the aspect ratio when rendered in the Web browser.

See Also

Reference

RichImageField Class

RichImageField Members

Microsoft.SharePoint.Publishing.WebControls Namespace

RichImageField