New to Telerik UI for WinForms? Start a free 30-day trial

Provides a default value, optional change callback, and layout/rendering effect flags for a document property.

Definition

Constructors

Initializes metadata with a default value and the specified layout or rendering effect flags.

C#
public DocumentPropertyMetadata(object defaultValue, DocumentPropertyMetadataOptions options)
Parameters:defaultValueobject

The default value supplied to the property metadata.

optionsDocumentPropertyMetadataOptions

The operations affected by changes to the property.

Initializes metadata with a default value, change callback, and layout or rendering effect flags.

C#
public DocumentPropertyMetadata(object defaultValue, PropertyChangedCallback propertyChangedCallback, DocumentPropertyMetadataOptions options)
Parameters:defaultValueobject

The default value supplied to the property metadata.

propertyChangedCallbackPropertyChangedCallback

The callback supplied to the base property metadata.

optionsDocumentPropertyMetadataOptions

The operations affected by changes to the property.

Initializes metadata with a default value and change callback, without layout or rendering effect flags.

C#
public DocumentPropertyMetadata(object defaultValue, PropertyChangedCallback propertyChangedCallback)
Parameters:defaultValueobject

The default value supplied to the property metadata.

propertyChangedCallbackPropertyChangedCallback

The callback supplied to the base property metadata.

Initializes metadata with a default value and no layout or rendering effect flags.

C#
public DocumentPropertyMetadata(object defaultValue)
Parameters:defaultValueobject

The default value supplied to the property metadata.

Properties

Gets or sets whether changes to the property affect arrangement of its document element.

C#
public bool AffectsArrange { get; set; }

Gets or sets whether changes to the property affect measurement of its document element.

C#
public bool AffectsMeasure { get; set; }

Gets or sets whether changes to the property affect rendering of its document element.

C#
public bool AffectsRender { get; set; }