The StyleProperties type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToInlineCss |
Creates a string containing the CSS corrsponding to the current property values.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
CreateFont |
Creates a font from current settings.
(Defined by DrawingStyleExtensions.) | |
CreateFontMetadata |
Creates a font from current settings.
(Defined by DrawingStyleExtensions.) | |
GetEffectiveBackgroundColor |
Gets a suitable color to use for painting the background. Use this to render the background of an element that does not support transparency.
This method is typically only relevant for Forms based implementations of views for CustomVisuals etc. If your view is based on HTML and
Javascript (that is, derived from CustomVisualView) you can just leave your background transparent to use the theme color of the page.
(Defined by DrawingStyleExtensions.) |
See Also