Version

AppearanceData Structure Members

The following tables list the members exposed by AppearanceData.

Public Properties
 NameDescription
Public PropertyAlphaLevelThe level (0 to 255) used for alpha blending (0 means default).  
Public PropertyBackColorThe primary color used to fill the background  
Public PropertyBackColor2The second color used in a gradient fill of the background.  
Public PropertyBackColorAlphaGets/sets an enumeration that specifies which alpha level to apply to the background color  
Public PropertyBackColorDisabledThe color of the background for disabled elements  
Public PropertyBackColorDisabled2The second color used in a gradient fill of the background for disabled elements.  
Public PropertyBackGradientAlignmentGets/sets an enumeration that determines how the BackGradientStyle is aligned with respect to its origin and extent.  
Public PropertyBackGradientStyleGets/sets an enumeration that specifies if and how a color gradient will be used to fill the background.  
Public PropertyBackHatchStyleGets/sets an enumeration that specifies if a hatch brush will be used to fill the background.  
Public PropertyBorderAlphaGets/sets an enumeration that specifies which alpha level to apply to the borders  
Public PropertyBorderColorThe border color for non-3D borders  
Public PropertyBorderColor2The second border color for non-3D borders  
Public PropertyBorderColor3DBaseThe base color used to create the shadow and highlight colors for raised or inset 3d border styles. If BorderColor3DBase is not set then the BackColor will be used.  
Public PropertyCursorThe mouse cursor  
Public PropertyFontDataThe fontdata properties used to draw text  
Public PropertyForeColorThe color of text  
Public PropertyForeColorDisabledThe color of text in a disabled element  
Public PropertyForegroundAlphaGets/sets an enumeration that specifies which alpha level to apply to the foreground text.  
Public PropertyHasFontDataReturns true if any of the fontdata properties are not set to their default values  
Public PropertyImageThe foreground image. Can be either an image or an index into the imagelist's collection  
Public PropertyImageAlphaGets/sets an enumeration that specifies which alpha level to apply to the foreground image  
Public PropertyImageBackgroundGets/sets the background image  
Public PropertyImageBackgroundAlphaGets/sets an enumeration that specifies which alpha level to apply to the background image  
Public PropertyImageBackgroundDisabledGets/sets the background image when the associate element is disabled.  
Public PropertyImageBackgroundOriginGets/sets an enumeration that specifies the origin of the background image  
Public PropertyImageBackgroundStretchMarginsDetermines the margins used when drawing an ImageBackground when ImageBackgroundStyle is set to Stretched.  
Public PropertyImageBackgroundStyleGets/sets an enumeration that specifies the style of the background image  
Public PropertyImageHAlignThe horizontal alignment of the image  
Public PropertyImageVAlignThe vertical aligmnent of the image  
Public PropertyNonDefaultSettingsBit flags that indicate which properties have non-default values.  
Public PropertyTextHAlignThe alignment of text horizontally  
Public PropertyTextTrimmingSpecifies how text will be rendered when there is not enough room to display the entire string.  
Public PropertyTextVAlignThe aligmnent of text vertically  
Public PropertyThemedElementAlphaGets/sets an enumeration that specifies which alpha level to apply to the themed element.  
Public Methods
 NameDescription
Public MethodCloneReturns a copy of the structure.  
Public Methodstatic (Shared in Visual Basic)ContentAlignmentFromHVAlignStatic method for converting an VAlign and an HAlign value into a ContentAlignment enumerator  
Public Methodstatic (Shared in Visual Basic)ConvertFromHatchStyleConverts from a System.Drawing.Drawing2D.HatchStyle enumeration and returns a BackHatchStyle value that is equivalent.  
Public Methodstatic (Shared in Visual Basic)ConvertToHatchStyleConverts from a BackHatchStyle enumeration and returns a System.Drawing.Drawing2D.HatchStyle value that is equivalent.  
Public MethodCreateFontOverloaded. This creates a font based on the FontData settings and the passed in base font.  
Public MethodGetBackColorReturns the back color to use for an element  
Public MethodGetBackColor2Returns the second back color to use for an element when doing a gradient fill.  
Public MethodGetForeColorReturns the color to use for an element's text  
Public MethodGetImageReturns the image property as an image. If it was set as an index into an imagelist control it will return the image at that index. If the image property was set to an image it will return that image.  
Public MethodGetImageBackgroundReturns the image from the appearance that should be used to render the element based on the specified enabled state.  
Public MethodHasPropertyBeenSetReturns true if the requested property has been set  
Public MethodHavePropertiesBeenSetReturns true if any of the requested property have been set  
Public Methodstatic (Shared in Visual Basic)HVAlignFromContentAlignmentStatic method for converting a ContentAlignment alignment enumerator value into a VAlign and an HAlign value  
Public MethodIsSameFontOverloaded. Checks if the font we would create is the same as would be created by the passed in AppearanceData.  
Public Methodstatic (Shared in Visual Basic)MergeMerges/copies properties from the source to the target structure based on the properties requested  
Public Methodstatic (Shared in Visual Basic)MergeExcludeMerges/copies properties from the source to the target structure based on the properties requested  
Public Methodstatic (Shared in Visual Basic)MergeIncludeMerges/copies properties from the source to the target structure based on the properties requested  
Public MethodResetFontDataResets the property back to its default value  
See Also