New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class PropertySetting : IPropertySetting

Inheritance: objectPropertySetting

Implements: IPropertySetting

Gets the associated RadProperty.

C#
public RadProperty Property { get; set; }

Implements: IPropertySetting.Property

Constructors

Initializes a new instnace of the PropertySetting class.

C#
public PropertySetting()

Initializes a new instnace of the PropertySetting class by using an exising property setting instance.

C#
public PropertySetting(PropertySetting setting)
Parameters:settingPropertySetting

An existing property setting.

Initializes a new instnace of the PropertySetting class by specifying property and its value.

C#
public PropertySetting(RadProperty property, object value)
Parameters:propertyRadProperty

A property.

valueobject

A property value.

Initializes a new instnace of the PropertySetting class by specifying property name and its value.

C#
public PropertySetting(string propertyName, object value)
Parameters:propertyNamestring

A property name.

valueobject

A property value.

Fields

Gets or sets the property mapper used to map property names based on the stylable element type.

C#
public PropertyMapper PropertyMapper

Properties

Gets an instance of AnimatedPropertySetting related with this setting.

C#
public AnimatedPropertySetting AnimatedSetting { get; set; }

Gets or sets the property end value (creates an animated property setting).

C#
public object EndValue { get; set; }

Gets or sets the full property name (including the class name).

C#
public string FullName { get; set; }

Gets or sets the property name.

C#
public string Name { get; set; }

Gets or sets the property value.

C#
public object Value { get; set; }

Methods

Applies the property setting on the specified element.

C#
public void ApplyValue(RadObject element)
Parameters:elementRadObject

An instance of RadObject

Implements: IPropertySetting.ApplyValue(RadObject)

Resolves the RadProperty object based on its arguments.

C#
public static RadProperty FindProperty(Type currentType, string propertyName, bool fallback)
Parameters:currentTypeType

The type which owns this property.

propertyNamestring

The property name.

fallbackbool

Specifies whether to search base classes if the current type does not contain the specified property.

Returns:

RadProperty

An instance of RadProperty if successful.

Gets the current property value for the specified RadObject

C#
public object GetCurrentValue(RadObject forObject)
Parameters:forObjectRadObject

The object.

Returns:

object

The current property value for the object.

Implements: IPropertySetting.GetCurrentValue(RadObject)

Unapplies the property setting from the specified element.

C#
public void UnapplyValue(RadObject element)
Parameters:elementRadObject

An instance of RadObject

Implements: IPropertySetting.UnapplyValue(RadObject)