Class UserProperties

UserProperties class

Special property class which allows typed properties to be set and returned. It also allows the hookup of two default property objects to be searched if this property object does not contain the property.

public class UserProperties : Dictionary<string, object>

Constructors

NameDescription
UserProperties()Initializes an empty instance of UserProperties class.
UserProperties(Dictionary<string, object>)Initializes an of UserProperties class with default values.
UserProperties(Dictionary<string, object>, Dictionary<string, object>)Constructs UserProperties with a defaults and altDefaults table, which are searched in that order.

Properties

NameDescription
virtual Properties { set; }Copies properties, including its defaults into this UserProperties

Methods

NameDescription
virtual GetProperty(string)Gets string property value.
virtual GetProperty(string, string)Gets string property value. If requested property is absent, returns provided default value.
virtual GetPropertyColor(string)Gets color property value.
virtual GetPropertyColor(string, Color)Gets color property value. If requested property is absent, returns provided default value.
virtual GetPropertyDouble(string)Gets double property value.
virtual GetPropertyDouble(string, double)Gets double property value. If requested property is absent, returns provided default value.
virtual GetPropertyFloat(string)Gets float property value.
virtual GetPropertyFloat(string, float)Gets float property value. If requested property is absent, returns provided default value.
virtual GetPropertyInt(string)Gets integer property value.
virtual GetPropertyInt(string, int)Gets integer property value. If requested property is absent, returns provided default value.
virtual GetPropertyMargins(string)Gets margins property value.
virtual GetPropertyMargins(string, Margins)Gets margins property value. If requested property is absent, returns provided default value.
virtual GetPropertyMatrix(string)Gets matrix property value.
virtual GetPropertyMatrix(string, Matrix)Gets matrix property value. If requested property is absent, returns provided default value.
virtual GetPropertyRectangle(string)Gets rectangle property value.
virtual GetPropertyRectangle(string, RectangleF)Gets rectangle property value. If requested property is absent, returns provided default value.
virtual GetPropertySize(string)Gets size property value.
virtual GetPropertySize(string, Size)Gets size property value. If requested property is absent, returns provided default value.
virtual GetPropertyStringArray(string)Gets string array property value.
virtual GetPropertyStringArray(string, string[])Gets string array property value. If requested property is absent, returns provided default value.
virtual IsProperty(string)Gets boolean property value.
virtual IsProperty(string, bool)Gets boolean property value. If requested property is absent, returns provided default value.
virtual PrintProperties()
virtual PropertyNames()Returns properties names.
virtual SetProperty(string, bool)Sets boolean property value.
virtual SetProperty(string, Color)Sets color property value.
virtual SetProperty(string, double)Sets double property value.
virtual SetProperty(string, float)Sets float property value.
virtual SetProperty(string, int)Sets integer property value.
virtual SetProperty(string, Margins)Sets margins property value.
virtual SetProperty(string, Matrix)Sets matrix property value.
virtual SetProperty(string, Rectangle)Sets rectangle property value.
virtual SetProperty(string, Size)Sets size property value.
virtual SetProperty(string, string)Sets string property value.
virtual SetProperty(string, string[])Sets string array property value.
static SetProperty(Dictionary<string, object>, string, bool)Sets boolean property value in specified properties table.
static SetProperty(Dictionary<string, object>, string, Color)Sets color property value in specified properties table.
static SetProperty(Dictionary<string, object>, string, double)Sets double property value in specified properties table.
static SetProperty(Dictionary<string, object>, string, float)Sets float property value in specified properties table.
static SetProperty(Dictionary<string, object>, string, int)Sets integer property value in specified properties table.
static SetProperty(Dictionary<string, object>, string, Margins)Sets margins property value in specified properties table.
static SetProperty(Dictionary<string, object>, string, Matrix)Sets matrix property value in specified properties table.
static SetProperty(Dictionary<string, object>, string, Rectangle)Sets rectangle property value in specified properties table.
static SetProperty(Dictionary<string, object>, string, Size)Sets size property value in specified properties table.
static SetProperty(Dictionary<string, object>, string, string[])Sets string array property value in specified properties table.

See Also