ElementWindowless Class Members
In This Topic
The following tables list the members exposed by ElementWindowless.
Public Constructors
Public Fields
| Name | Description |
| DYNAMICNAME | Represents the default name for shape, the name will be correct when the shape is added to the collection. |
Top
Public Properties
| 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. |
| 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. |
| Visible | Gets or sets whether the element is visible. |
Top
Public Methods
| Name | Description |
| CopyTo | Copies the properties of this windowless element object into the target object. |
| Deserialize | Loads the object from XML. |
| DrawRotatedText | Overloaded. Draws the specified string in the specified rectangle, with the specified font, color, alignments, orientation, hotkey prefix, and wrapping. |
| 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. |
| 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. |
| 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. |
| 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
Public Events
| 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
See Also