UserProperties.SetProperty

SetProperty(string, string)

Sets string property value.

public virtual object SetProperty(string key, string value)
ParameterTypeDescription
keyStringThe name of property.
valueStringThe value of property.

Return Value

A property.

See Also


SetProperty(string, string[])

Sets string array property value.

public virtual object SetProperty(string key, string[] value)
ParameterTypeDescription
keyStringThe name of property.
valueString[]The value of property.

Return Value

A property.

See Also


SetProperty(Dictionary<string, object>, string, string[])

Sets string array property value in specified properties table.

public static object SetProperty(Dictionary<string, object> properties, string key, string[] value)
ParameterTypeDescription
propertiesDictionary`2The properties table.
keyStringThe name of property.
valueString[]The value of property.

Return Value

A property.

See Also


SetProperty(string, Color)

Sets color property value.

public virtual object SetProperty(string key, Color value)
ParameterTypeDescription
keyStringThe name of property.
valueColorThe value of property.

Return Value

A property.

See Also


SetProperty(Dictionary<string, object>, string, Color)

Sets color property value in specified properties table.

public static object SetProperty(Dictionary<string, object> properties, string key, Color value)
ParameterTypeDescription
propertiesDictionary`2The properties table.
keyStringThe name of property.
valueColorThe value of property.

Return Value

A property.

See Also


SetProperty(string, Rectangle)

Sets rectangle property value.

public virtual object SetProperty(string key, Rectangle value)
ParameterTypeDescription
keyStringThe name of property.
valueRectangleThe value of property.

Return Value

A property.

See Also


SetProperty(Dictionary<string, object>, string, Rectangle)

Sets rectangle property value in specified properties table.

public static object SetProperty(Dictionary<string, object> properties, string key, Rectangle value)
ParameterTypeDescription
propertiesDictionary`2The properties table.
keyStringThe name of property.
valueRectangleThe value of property.

Return Value

A property.

See Also


SetProperty(string, Margins)

Sets margins property value.

public virtual object SetProperty(string key, Margins value)
ParameterTypeDescription
keyStringThe name of property.
valueMarginsThe value of property.

Return Value

A property.

See Also


SetProperty(Dictionary<string, object>, string, Margins)

Sets margins property value in specified properties table.

public static object SetProperty(Dictionary<string, object> properties, string key, Margins value)
ParameterTypeDescription
propertiesDictionary`2The properties table.
keyStringThe name of property.
valueMarginsThe value of property.

Return Value

A property.

See Also


SetProperty(string, Size)

Sets size property value.

public virtual object SetProperty(string key, Size value)
ParameterTypeDescription
keyStringThe name of property.
valueSizeThe value of property.

Return Value

A property.

See Also


SetProperty(Dictionary<string, object>, string, Size)

Sets size property value in specified properties table.

public static object SetProperty(Dictionary<string, object> properties, string key, Size value)
ParameterTypeDescription
propertiesDictionary`2The properties table.
keyStringThe name of property.
valueSizeThe value of property.

Return Value

A property.

See Also


SetProperty(string, int)

Sets integer property value.

public virtual object SetProperty(string key, int value)
ParameterTypeDescription
keyStringThe name of property.
valueInt32The value of property.

Return Value

A property.

See Also


SetProperty(Dictionary<string, object>, string, int)

Sets integer property value in specified properties table.

public static object SetProperty(Dictionary<string, object> properties, string key, int value)
ParameterTypeDescription
propertiesDictionary`2The properties table.
keyStringThe name of property.
valueInt32The value of property.

Return Value

A property.

See Also


SetProperty(string, double)

Sets double property value.

public virtual object SetProperty(string key, double value)
ParameterTypeDescription
keyStringThe name of property.
valueDoubleThe value of property.

Return Value

A property.

See Also


SetProperty(Dictionary<string, object>, string, double)

Sets double property value in specified properties table.

public static object SetProperty(Dictionary<string, object> properties, string key, double value)
ParameterTypeDescription
propertiesDictionary`2The properties table.
keyStringThe name of property.
valueDoubleThe value of property.

Return Value

A property.

See Also


SetProperty(string, float)

Sets float property value.

public virtual object SetProperty(string key, float value)
ParameterTypeDescription
keyStringThe name of property.
valueSingleThe value of property.

Return Value

A property.

See Also


SetProperty(Dictionary<string, object>, string, float)

Sets float property value in specified properties table.

public static object SetProperty(Dictionary<string, object> properties, string key, float value)
ParameterTypeDescription
propertiesDictionary`2The properties table.
keyStringThe name of property.
valueSingleThe value of property.

Return Value

A property.

See Also


SetProperty(string, bool)

Sets boolean property value.

public virtual object SetProperty(string key, bool value)
ParameterTypeDescription
keyStringThe name of property.
valueBooleanThe value of property.

Return Value

A property.

See Also


SetProperty(Dictionary<string, object>, string, bool)

Sets boolean property value in specified properties table.

public static object SetProperty(Dictionary<string, object> properties, string key, bool value)
ParameterTypeDescription
propertiesDictionary`2The properties table.
keyStringThe name of property.
valueBooleanThe value of property.

Return Value

A property.

See Also


SetProperty(string, Matrix)

Sets matrix property value.

public virtual object SetProperty(string key, Matrix value)
ParameterTypeDescription
keyStringThe name of property.
valueMatrixThe value of property.

Return Value

A property.

See Also


SetProperty(Dictionary<string, object>, string, Matrix)

Sets matrix property value in specified properties table.

public static object SetProperty(Dictionary<string, object> properties, string key, Matrix value)
ParameterTypeDescription
propertiesDictionary`2The properties table.
keyStringThe name of property.
valueMatrixThe value of property.

Return Value

A property.

See Also