In This Article

SizePropertyEditor Class

Represents a PropertyEditor for editing a Size value with a SizeEditBox.

public class SizePropertyEditor : PartEditBoxPropertyEditorBase
Inheritance:
object ObservableObjectBase PropertyEditor PropertyEditorBase PartEditBoxPropertyEditorBase object
Derived:
NullableSizePropertyEditor

Constructors

SizePropertyEditor()

Initializes an instance of the SizePropertyEditor class.

public SizePropertyEditor()

SizePropertyEditor(Type)

Initializes an instance of the SizePropertyEditor class.

protected SizePropertyEditor(Type propertyType)
Parameter Type Description
propertyType Type

The type of the property.

Properties

DefaultValue

Gets or sets the value to set when incrementing/decrementing from a null value.

public Size DefaultValue { get; set; }

Property Value

Size:

The value to set when incrementing/decrementing from a null value. The default value is 0.

Format

Gets or sets the number format string.

public string Format { get; set; }

Property Value

string:

The number format string. The default value is "G".

IsNaNAllowed

Gets or sets whether NaN is accepted as a component value.

public bool IsNaNAllowed { get; set; }

Property Value

bool:

true if NaN is accepted as a component value; otherwise, false. The default value is false.

IsNegativeInfinityAllowed

Gets or sets whether NegativeInfinity is accepted as a component value.

public bool IsNegativeInfinityAllowed { get; set; }

Property Value

bool:

true if NegativeInfinity is accepted as a component value; otherwise, false. The default value is false.

IsPositiveInfinityAllowed

Gets or sets whether PositiveInfinity is accepted as a component value.

public bool IsPositiveInfinityAllowed { get; set; }

Property Value

bool:

true if PositiveInfinity is accepted as a component value; otherwise, false. The default value is false.

LargeChange

Gets or sets the large change value.

public Size LargeChange { get; set; }

Property Value

Size:

The large change value. The default value is 5.

Maximum

Gets or sets the highest possible value.

public Size Maximum { get; set; }

Property Value

Size:

The highest possible value.

Minimum

Gets or sets the lowest possible value.

public Size Minimum { get; set; }

Property Value

Size:

The lowest possible value.

PredefinedValueTemplateKey

Gets the resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.

protected override object PredefinedValueTemplateKey { get; }

Property Value

object:

The resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.

RoundingDecimalPlace

Gets or sets the rounding decimal place.

public int? RoundingDecimalPlace { get; set; }

Property Value

int?:

The rounding decimal place, which is a value between 0 and 15. Pass a null value to disable rounding. The default value is 8.

SmallChange

Gets or sets the small change value.

public Size SmallChange { get; set; }

Property Value

Size:

The small change value. The default value is 1.

Inherited Members