AppearanceObjectEx Members

Represents an appearance object with extended settings.

Constructors

Name Description
AppearanceObjectEx() Initializes a new instance of the AppearanceObjectEx class with default settings.
AppearanceObjectEx(IAppearanceOwner) Initializes a new instance of the AppearanceObjectEx class with the specified owner.
AppearanceObjectEx(IAppearanceOwner, AppearanceObject, String) Initializes a new instance of the AppearanceObjectEx class with the specified settings.

Properties

Name Description
BackColor Gets or sets the background color if the AppearanceObject.BackColor2 property's value is Color.Empty. Otherwise, it specifies the gradient's starting color. Inherited from AppearanceObject.
BackColor2 Gets or sets the end color of the background's gradient brush. Inherited from AppearanceObject.
BorderColor Gets or sets the border color. Inherited from AppearanceObject.
ControlAppearance static Gets the default appearance settings which are used to paint 3-D elements in Windows. Inherited from AppearanceObject.
DefaultFont static Gets or sets the default font for controls. Inherited from AppearanceObject.
DefaultMenuFont static Gets and sets the font used to display text on menus. Inherited from AppearanceObject.
EmptyAppearance static Returns an empty appearance object. Inherited from AppearanceObject.
Font Gets or sets the font used to paint the text. Inherited from AppearanceObject.
FontHeight Obsolete. Gets the height of the font used by the appearance object. Inherited from AppearanceObject.
FontSizeDelta Gets or sets an integer value by which the font size is adjusted. Inherited from AppearanceObject.
FontStyleDelta Gets or sets an additional style to be applied to the font. Inherited from AppearanceObject.
ForeColor Gets or sets the foreground color. Inherited from AppearanceObject.
GradientMode Gets or sets the background gradient's direction. Inherited from AppearanceObject.
HAlignment Gets the horizontal alignment of the appearance object's text. Inherited from AppearanceObject.
Image Gets or sets the background image. Inherited from AppearanceObject.
IsDefaultFontChanged static Gets whether the default font is changed. Inherited from AppearanceObject.
IsDisposed Gets whether the current object has been disposed of. Inherited from AppearanceObject.
Name Gets or sets the name of the current appearance object. Inherited from AppearanceObject.
Options Provides access to the appearance object's options.
ParentAppearance Gets the parent appearance object. Inherited from AppearanceObject.
TextOptions Provides access to text rendering options (horizontal and vertical alignment, word wrapping, trimming options, etc.). Inherited from AppearanceObject.

Methods

Name Description
Assign(AppearanceDefault) Sets the appearance object's settings to default values.
Assign(AppearanceObject) Copies all settings from the appearance object passed as a parameter. Inherited from AppearanceObject.
AssignInternal(AppearanceObject) Copies all the settings in the appearance object passed as the parameter to the current object without raising the AppearanceObject.Changed event. Inherited from AppearanceObject.
BeginUpdate() Locks the AppearanceObject object by disallowing visual updates until the EndUpdate or CancelUpdate method is called. Inherited from AppearanceObject.
CalcDefaultTextSize() Calculates the size of a string painted with the default font. Inherited from AppearanceObject.
CalcDefaultTextSize(GraphicsCache) This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from AppearanceObject.
CalcDefaultTextSize(Graphics) Calculates the size of a string painted with the font specified by the current object. Inherited from AppearanceObject.
CalcTextSize(GraphicsCache, StringFormatInfo, String, Int32) Calculates the string size. Inherited from AppearanceObject.
CalcTextSize(GraphicsCache, StringFormatInfo, String, Int32, Int32) Calculates the string size. Inherited from AppearanceObject.
CalcTextSize(GraphicsCache, StringFormatInfo, String, Int32, Int32, out Boolean) Calculates the string size. Inherited from AppearanceObject.
CalcTextSize(GraphicsCache, StringFormat, String, Int32) Calculates the size of the specified string drawn with the specified StringFormat object. Inherited from AppearanceObject.
CalcTextSize(GraphicsCache, StringFormat, String, Int32, Int32) Calculates the string size. Inherited from AppearanceObject.
CalcTextSize(GraphicsCache, StringFormat, String, Int32, Int32, out Boolean) Calculates the string size. Inherited from AppearanceObject.
CalcTextSize(GraphicsCache, String, Int32) Calculates the size of the specified string. Inherited from AppearanceObject.
CalcTextSize(Graphics, StringFormatInfo, String, Int32) Calculates the size of the specified string drawn with the specified StringFormat object. Inherited from AppearanceObject.
CalcTextSize(Graphics, StringFormat, String, Int32) Calculates the size of the specified string drawn with the specified StringFormat object. Inherited from AppearanceObject.
CalcTextSize(Graphics, StringFormat, String, Int32, Int32) Calculates the size of the specified string drawn with the specified format, fitting the string into a clipping rectangle. Inherited from AppearanceObject.
CalcTextSize(Graphics, StringFormat, String, Int32, Int32, out Boolean) Calculates the size of the specified string when it's drawn with the specified font, fitting the string into a clipping rectangle. Allows you to determine whether the string does not fit the clipping rectangle. Inherited from AppearanceObject.
CalcTextSize(Graphics, String, Int32) Calculates the size of the specified string. Inherited from AppearanceObject.
CalcTextSizeInt(GraphicsCache, StringFormatInfo, String, Int32) Calculates the length of the specified string drawn with the specified formatting. Inherited from AppearanceObject.
CalcTextSizeInt(GraphicsCache, StringFormat, String, Int32) Calculates the length of the specified string drawn with the specified StringFormat object. Inherited from AppearanceObject.
CalcTextSizeInt(GraphicsCache, String, Int32) Calculates the length of the specified string. Inherited from AppearanceObject.
CalcTextSizeInt(Graphics, StringFormatInfo, String, Int32) Calculates the length of the specified string drawn with the specified formatting. Inherited from AppearanceObject.
CalcTextSizeInt(Graphics, StringFormat, String, Int32) Calculates the length of the specified string drawn with the specified StringFormat object. Inherited from AppearanceObject.
CalcTextSizeInt(Graphics, String, Int32) Calculates the length of the specified string. Inherited from AppearanceObject.
CancelUpdate() Unlocks the AppearanceObject object after it has been locked by the BeginUpdate method, without causing an immediate visual update. Inherited from AppearanceObject.
Clone() Creates a copy of the current AppearanceObjectEx instance.
Combine(AppearanceObject) Copies the activated settings from the appearance object passed as the parameter. Inherited from AppearanceObject.
Dispose() Releases all resources used by the current appearance object. Inherited from AppearanceObject.
DrawBackground(GraphicsCache, Rectangle) Draws the background for the area contained within the specified boundary. Inherited from AppearanceObject.
DrawBackground(GraphicsCache, Rectangle, Boolean) Draws the background for the area contained within the specified boundary. Inherited from AppearanceObject.
DrawBackground(Graphics, GraphicsCache, Rectangle) Draws the background. Inherited from AppearanceObject.
DrawBackground(Graphics, GraphicsCache, Rectangle, Boolean) Draws the background for the area contained within the specified boundary. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle) Draws a text string at the specified position. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, StringFormatInfo) Draws the specified text string in the specified rectangle using the specified formatting attributes. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Brush) Draws a text string at the specified position using the specified color. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Brush, StringFormatInfo) Draws the specified text string in the specified rectangle using the specified formatting attributes. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Brush, StringFormat) Draws a text string at the specified position using the specified color and format. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Color, StringFormatInfo) Draws the specified text string in the specified rectangle with the specified Color using the formatting attributes. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Color, TextOptions) Draws the specified text string in the specified rectangle with the specified Color using the specified TextOptions. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Color, StringFormat) Draws the specified text string in the specified rectangle with the specified Color using the formatting attributes of the specified StringFormat. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Font, StringFormatInfo) Draws the specified text string in the specified rectangle with the specified Font using the specified formatting attributes. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Font, Brush, StringFormatInfo) Draws the specified text string in the specified rectangle with the specified Font using the specified formatting attributes. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Font, Brush, StringFormat) Draws a text string at the specified position using the specified font, color and format. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Font, Color, StringFormatInfo) Draws the specified text string in the specified rectangle with the specified Font using the specified formatting attributes. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Font, Color, StringFormat) Draws the specified text string at the specified location with the specified Color and Font objects using the formatting attributes of the specified StringFormat. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, Font, StringFormat) Draws a text string at the specified position using the specified font and format. Inherited from AppearanceObject.
DrawString(GraphicsCache, String, Rectangle, StringFormat) Draws a text string at the specified position using the specified format. Inherited from AppearanceObject.
DrawVString(GraphicsCache, String, Font, Brush, Rectangle, StringFormatInfo, Int32) Draws the specified text string in the specified rectangle with the specified Font using the formatting attributes. Inherited from AppearanceObject.
DrawVString(GraphicsCache, String, Font, Brush, Rectangle, StringFormat, Int32) Draws a text string vertically with the specified angle and at the specified position using the specified font, color and format. Inherited from AppearanceObject.
EndUpdate() Unlocks the AppearanceObject object after a call to the BeginUpdate method and causes an immediate visual update. Inherited from AppearanceObject.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
FillRectangle(GraphicsCache, Rectangle) Fills the interior of a rectangle specified by a Rectangle structure. Inherited from AppearanceObject.
FillRectangle(GraphicsCache, Rectangle, Boolean) Fills the interior of a rectangle specified by a Rectangle structure. Inherited from AppearanceObject.
GetAppearanceByFont() This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from AppearanceObject.
GetAppearanceByOption(String) This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from AppearanceObject.
GetBackBrush(GraphicsCache) Gets the solid brush used to draw the element's background. Inherited from AppearanceObject.
GetBackBrush(GraphicsCache, Rectangle) Gets the brush used to draw an element's background. Inherited from AppearanceObject.
GetBackColor() Gets the background color specified by the appearance object's settings. Inherited from AppearanceObject.
GetBackColor(ISkinProvider) Returns the BackColor (AppearanceObject.BackColor) for the target LookAndFeel object. Inherited from AppearanceObject.
GetBackColor2() Gets the ending color of the linear gradient brush, specified by the appearance object's settings. Inherited from AppearanceObject.
GetBackColorAppearance() This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from AppearanceObject.
GetBackPen(GraphicsCache) Gets the pen used to draw the element's background lines and curves. Inherited from AppearanceObject.
GetBackPen(GraphicsCache, Int32) Gets the pen used to draw the element's background lines and curves. Inherited from AppearanceObject.
GetBorderBrush(GraphicsCache) Gets the brush used to draw the element's border. Inherited from AppearanceObject.
GetBorderColor() Gets the element's border color specified by the appearance object's settings. Inherited from AppearanceObject.
GetBorderColor(ISkinProvider) Returns the BorderColor (AppearanceObject.BorderColor) for the target LookAndFeel object. Inherited from AppearanceObject.
GetBorderPen(GraphicsCache) Gets the pen used to draw the border's lines and curves. Inherited from AppearanceObject.
GetBorderPen(GraphicsCache, Int32) Gets the pen used to draw the element's borders. Inherited from AppearanceObject.
GetFont() Gets the font settings specified by the appearance object's settings. Inherited from AppearanceObject.
GetFontHeight(GraphicsCache) Returns the font height. Inherited from AppearanceObject.
GetForeBrush(GraphicsCache) Gets the solid brush whose color is specified by the AppearanceObject.ForeColor property. Inherited from AppearanceObject.
GetForeColor() Gets the foreground color specified by the appearance object's settings. Inherited from AppearanceObject.
GetForeColor(GraphicsCache) Returns the ForeColor (AppearanceObject.ForeColor) for the target GraphicsCache object. Inherited from AppearanceObject.
GetForePen(GraphicsCache) Gets the pen whose color is specified by the AppearanceObject.ForeColor property. Inherited from AppearanceObject.
GetGradientMode() Gets the background gradient's direction specified by the appearance object's settings. Inherited from AppearanceObject.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetImage() Gets the background image specified by the appearance object's settings. Inherited from AppearanceObject.
GetStringFormat() Gets the formatting attributes specified by the appearance object's settings. Inherited from AppearanceObject.
GetStringFormat(TextOptions) Gets the formatting attributes specified by the AppearanceObject.TextOptions object passed as the parameter. Inherited from AppearanceObject.
GetStringFormatInfo() Gets the formatting attributes specified by the appearance object's settings. Inherited from AppearanceObject.
GetStringFormatInfo(TextOptions) Returns a StringFormatInfo object initialized with settings of the specified TextOptions object. Inherited from AppearanceObject.
GetTextOptions() Gets the text options specified by the appearance object's settings. Inherited from AppearanceObject.
GetTextureBrush() Returns a TextureBrush object which uses the image specified by the AppearanceObject.Image property to fill the interior of a shape. Inherited from AppearanceObject.
GetType() Gets the Type of the current instance. Inherited from Object.
IsEqual(AppearanceObject) Tests whether two objects have the same property values. Inherited from AppearanceObject.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Reset() Reverts the appearance object's properties to their default values. Inherited from AppearanceObject.
ShouldSerialize() Tests whether the AppearanceObject should be persisted. Inherited from AppearanceObject.
ToString() Returns a string representing the current appearance object. Inherited from AppearanceObject.

Events

Name Description
Changed Fires when the appearance object's properties are changed. Inherited from AppearanceObject.
PaintChanged Occurs when specific settings that control the text appearance are changed. Inherited from AppearanceObject.
SizeChanged Occurs when specific settings that control the size of text are changed. Inherited from AppearanceObject.
See Also