Aspose::Page::UserProperties class

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.

class UserProperties : public System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>

Methods

MethodDescription
virtual GetProperty(System::String)Gets string property value.
virtual GetProperty(System::String, System::String)Gets string property value. If requested property is absent, returns provided default value.
virtual GetPropertyColor(System::String)Gets color property value.
virtual GetPropertyColor(System::String, System::Drawing::Color)Gets color property value. If requested property is absent, returns provided default value.
virtual GetPropertyDouble(System::String)Gets double property value.
virtual GetPropertyDouble(System::String, double)Gets double property value. If requested property is absent, returns provided default value.
virtual GetPropertyFloat(System::String)Gets float property value.
virtual GetPropertyFloat(System::String, float)Gets float property value. If requested property is absent, returns provided default value.
virtual GetPropertyInt(System::String)Gets integer property value.
virtual GetPropertyInt(System::String, int32_t)Gets integer property value. If requested property is absent, returns provided default value.
virtual GetPropertyMargins(System::String)Gets margins property value.
virtual GetPropertyMargins(System::String, System::SharedPtr<Margins>)Gets margins property value. If requested property is absent, returns provided default value.
virtual GetPropertyMatrix(System::String)Gets matrix property value.
virtual GetPropertyMatrix(System::String, System::SharedPtr<System::Drawing::Drawing2D::Matrix>)Gets matrix property value. If requested property is absent, returns provided default value.
virtual GetPropertyRectangle(System::String)Gets rectangle property value.
virtual GetPropertyRectangle(System::String, System::Drawing::RectangleF)Gets rectangle property value. If requested property is absent, returns provided default value.
virtual GetPropertySize(System::String)Gets size property value.
virtual GetPropertySize(System::String, System::Drawing::Size)Gets size property value. If requested property is absent, returns provided default value.
virtual GetPropertyStringArray(System::String)Gets string array property value.
virtual GetPropertyStringArray(System::String, System::ArrayPtr<System::String>)Gets string array property value. If requested property is absent, returns provided default value.
virtual IsProperty(System::String)Gets boolean property value.
virtual IsProperty(System::String, bool)Gets boolean property value. If requested property is absent, returns provided default value.
virtual PrintProperties()
virtual PropertyNames()Returns properties names.
virtual set_Properties(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>)Copies properties, including its defaults into this UserProperties.
virtual SetProperty(System::String, System::String)Sets string property value.
virtual SetProperty(System::String, System::ArrayPtr<System::String>)Sets string array property value.
static SetProperty(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>, System::String, System::ArrayPtr<System::String>)Sets string array property value in specified properties table.
virtual SetProperty(System::String, System::Drawing::Color)Sets color property value.
static SetProperty(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>, System::String, System::Drawing::Color)Sets color property value in specified properties table.
virtual SetProperty(System::String, System::Drawing::Rectangle)Sets rectangle property value.
static SetProperty(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>, System::String, System::Drawing::Rectangle)Sets rectangle property value in specified properties table.
virtual SetProperty(System::String, System::SharedPtr<Margins>)Sets margins property value.
static SetProperty(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>, System::String, System::SharedPtr<Margins>)Sets margins property value in specified properties table.
virtual SetProperty(System::String, System::Drawing::Size)Sets size property value.
static SetProperty(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>, System::String, System::Drawing::Size)Sets size property value in specified properties table.
virtual SetProperty(System::String, int32_t)Sets integer property value.
static SetProperty(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>, System::String, int32_t)Sets integer property value in specified properties table.
virtual SetProperty(System::String, double)Sets double property value.
static SetProperty(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>, System::String, double)Sets double property value in specified properties table.
virtual SetProperty(System::String, float)Sets float property value.
static SetProperty(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>, System::String, float)Sets float property value in specified properties table.
virtual SetProperty(System::String, bool)Sets boolean property value.
static SetProperty(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>, System::String, bool)Sets boolean property value in specified properties table.
virtual SetProperty(System::String, System::SharedPtr<System::Drawing::Drawing2D::Matrix>)Sets matrix property value.
static SetProperty(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>, System::String, System::SharedPtr<System::Drawing::Drawing2D::Matrix>)Sets matrix property value in specified properties table.
SetTemplateWeakPtr(uint32_t) override
UserProperties()Initializes an empty instance of UserProperties class.
UserProperties(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>)Initializes an of UserProperties class with default values.
UserProperties(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>, System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>)Constructs UserProperties with a defaults and altDefaults table, which are searched in that order.

See Also