In This Article

TimeSpanPropertyEditor Class

Represents a PropertyEditor for editing a TimeSpan value with a TimeSpanEditBox.

public class TimeSpanPropertyEditor : PartEditBoxPropertyEditorBase
Inheritance:
object ObservableObjectBase PropertyEditor PropertyEditorBase PartEditBoxPropertyEditorBase object
Derived:
NullableTimeSpanPropertyEditor

Constructors

TimeSpanPropertyEditor()

Initializes an instance of the TimeSpanPropertyEditor class.

public TimeSpanPropertyEditor()

TimeSpanPropertyEditor(Type)

Initializes an instance of the TimeSpanPropertyEditor class.

protected TimeSpanPropertyEditor(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 TimeSpan DefaultValue { get; set; }

Property Value

TimeSpan:

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 "c".

LargeChange

Gets or sets the large change value.

public TimeSpan LargeChange { get; set; }

Property Value

TimeSpan:

The large change value. The default value is 7.3:5:5:050.

Maximum

Gets or sets the highest possible value.

public TimeSpan Maximum { get; set; }

Property Value

TimeSpan:

The highest possible value.

Minimum

Gets or sets the lowest possible value.

public TimeSpan Minimum { get; set; }

Property Value

TimeSpan:

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.

SmallChange

Gets or sets the small change value.

public TimeSpan SmallChange { get; set; }

Property Value

TimeSpan:

The small change value. The default value is 1.1:1:1:1.

Inherited Members