ElementWindowless Class Members
The following tables list the members exposed by ElementWindowless.
| Name | Description |
  | DYNAMICNAME | Represents the default name for shape, the name will be correct when the shape is added to the collection. This field is read-only. |
Top
| Name | Description |
  | BACK_COLOR_DEFAULT | Represents the default color background for the element, namely SystemColors.Control. |
  | FORE_COLOR_DEFAULT | Represents the default text color for the element, namely SystemColors.ControlText. |
 | PICTURE_MARGIN_DEFAULT | Represents the default picture margin for the element, namely 2 pixels. This field is constant and read-only. |
Top
| Name | Description |
 | AlignHorz | Gets or sets the horizontal alignment of the contents of the element. |
 | AlignText | Gets or sets the text alignment for the element. |
 | AlignVert | Gets or sets the vertical alignment of the contents of the element. |
 | BackColor | Gets or sets the background color for the element. |
 | BackgroundImage | Gets or sets the background image for the control. |
 | Border | Gets or sets the border for the element. |
 | CancelMouse | Internal use only. |
 | CanFocus | Gets or sets whether the element can receive focus. |
 | ContainsFocus | Gets whether the element currently has the input focus. |
 | DrawFocusRectangle | Gets or sets the focus rectangle drawing style in the element. |
 | Enabled | Gets or sets whether the element is enabled. |
 | Focused | Gets whether the element has focus. |
 | Font | Gets or sets the font for the element. |
 | ForeColor | Gets or sets the foreground color for the element. |
 | ForegroundImage | Gets or sets the foreground image for the element. |
 | IsGrayscale | Internal use only |
 | MarginBottom | Gets or sets the margin between the bottom of the element and its contents. |
 | MarginLeft | Gets or sets the margin between the left edge of the element and its contents. |
 | MarginRight | Gets or sets the margin between the right edge of the element and its contents. |
 | MarginTop | Gets or sets the margin between the top of the element and its contents. |
 | Name | Gets or sets the name of the element. |
 | Parent | Internal use only. |
 | Picture | Gets or sets the picture for the element. |
 | PictureMargin | Gets or sets the margin between the text and the picture. |
 | PictureOrientation | Gets or sets the picture orientation for the element. |
 | PictureTransparencyColor | Gets or sets the picture transparency color for the element. |
 | PictureTransparencyTolerance | Gets or sets the picture transparency tolerance for the element. |
 | Rectangle | Gets the rectangular coordinates of the element. |
 | Redraw | Gets or sets whether the element is allowed to paint. |
 | Selectable | Gets or sets whether the control can receive focus. |
 | State | Gets or sets the state of the element. |
 | StateNotifyList | Internal use only. |
 | Tag | Gets or sets the Tag object for the element. |
 | Text | Gets or sets the text for the element. |
 | TextOrientation | Gets or sets the text orientation for the element. |
 | TextRotationAngle | Gets or sets the rotation angle of the text in the element. |
 | TextWrap | Gets or sets whether to wrap the text in the element. |
  | UsingTextRenderer | Internal use only. Gets text renderer info. |
 | Visible | Gets or sets whether the element is visible. |
Top
| Name | Description |
 | AddStateNotify | Internal use only. |
 | AttachMouseListeners | Internal use only. |
 | BringToFront | Internal use only. |
 | Clone | Internal use only. |
 | CopyTo | Copies the properties of this windowless element object into the target object. |
 | Deserialize | Loads the object from XML. |
 | DetachListeners | Internal use only. |
 | DoClick | Internal use only. |
 | DoDoubleClick | Internal use only. |
 | DoMouseDown | Internal use only. |
 | DoMouseMove | Internal use only. |
 | DoMouseUp | Internal use only. |
  | DrawRotatedText | Overloaded. Draws the specified string in the specified rectangle, with the specified font, color, alignments, orientation, hotkey prefix, and wrapping. |
 | FireStateNotify | Internal use only. |
 | Focus | Moves the focus to the element. |
 | GetClientRectangle | Overloaded. Gets the coordinates of the element. |
 | GetControl | Gets the Control object if the element is derived from the ElementWindowless class. |
 | GetElementStyle | Gets the style for the element. |
 | GetFont | Gets the default font used by the element, if the Font property is null. |
  | GetRotatedTextSize | Overloaded. Gets the size of the specified text when drawn with the specified font, orientation, wrapping, hotkey prefix, and string trimming. |
 | OnFontChanged | Raises the FontChanged event when the font in the control has changed. |
 | OnPaint | Overloaded. Paints the element (text and picture). |
 | OnPaintBackground | Overloaded. Paints the background of the element. |
 | Refresh | Forces the element to invalidate its client area and immediately repaint. |
 | RemoveStateNotify | Internal use only. |
 | Reset | Internal use only. |
 | ResetBackColor | Resets the background color to its default setting. |
 | ResetBorder | Resets the border of the element to its default settings. |
 | ResetFont | Resets the font for the element to it default value. |
 | ResetForeColor | Resets the text color for the element to its default value. |
 | ResetPictureTransparencyColor | Resets the transparency of a picture in the element to its default value. |
 | ResetPictureTransparencyTolerance | Resets the transparency tolerance for a picture in the element to its default value. |
 | ResetTag | Resets the Tag object for the element to its default value. |
 | ResetTextRotationAngle | Resets the rotation angle for text in the element to its default value. |
 | SendToBack | Internal use only. |
 | Serialize | Saves the object to XML. |
 | SetBounds | Overloaded. Sets the bounds of the element to the location and size of the bounding rectangle of the specified dimensions (in integer values). |
 | SetElementStyle | Overloaded. Sets the style for the element. |
 | SetRedraw | Internal use only. |
 | SetState | Sets the state of the element. |
 | ShouldSerializeBackColor | Indicates whether the BackColor property should be persisted. |
 | ShouldSerializeFont | Indicates whether the Font property should be persisted. |
 | ShouldSerializeForeColor | Indicates whether the ForeColor property should be persisted. |
 | ShouldSerializePictureTransparencyColor | Indicates whether the PictureTransparencyColor property should be persisted. |
 | ShouldSerializePictureTransparencyTolerance | Indicates whether the PictureTransparencyTolerance property should be persisted. |
 | ShouldSerializeTag | Indicates whether the Tag property should be persisted. |
 | ShouldSerializeTextRotationAngle | Indicates whether the TextRotationAngle property should be persisted. |
 | ToggleState | Toggles the state of the element. |
  | ToGrayscale | Overloaded. |
 | Update | Causes the control to redraw the invalidated regions with its client area. |
Top
| Name | Description |
 | BackgroundImageChanged | Occurs when the background image for the element changes. |
 | Changed | Occurs when the element changes. |
 | Click | Occurs when the user clicks the element. |
 | DoubleClick | Occurs when the user double-clicks the element. |
 | FontChanged | Occurs when the font for the element changes. |
 | ForegroundImageChanged | Occurs when the foreground image for the element changes. |
 | MouseDown | Occurs if the user presses a mouse button while the cursor is over the element. |
 | MouseMove | Occurs if the user moves the cursor while the cursor is over the element. |
 | MouseUp | Occurs if the user releases a mouse button while the cursor is over the element. |
 | NameChanging | Occurs before the Name property of the element changes. |
 | ParentChanged | Occurs when the parent of the element changes. |
 | PictureChanged | Occurs when the picture in the element changes. |
 | PropertyChanged | Occurs when a property on the element changes. |
Top