Class GenericWrappedTextControl
Implements simple text control which can draw text with new line characters and wrapping.
[ControlCategory("Tests")]
public class GenericWrappedTextControl : GenericControl, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo
- Inheritance
-
GenericWrappedTextControl
- Implements
Constructors
- GenericWrappedTextControl()
Initializes a new instance of the GenericWrappedTextControl class.
- GenericWrappedTextControl(AbstractControl?)
Initializes a new instance of the GenericWrappedTextControl class with the specified parent.
Fields
- ShowDebugCorners
Gets or sets whether to show debug corners when control is painted.
Properties
- LineDistance
Gets or sets distance between lines of text.
- TextForPaint
Gets text for painting.
- TextHorizontalAlignment
Gets or sets text alignment.
Methods
- DefaultPaint(PaintEventArgs)
Default painting method of the GenericControl and its descendants.
- DrawText(Graphics, RectD, Font, Color, Color)
Draws text within a specified rectangle on the provided graphics context.
- GetDefaultPreferredSize(SizeD, bool, Func<SizeD, SizeD>)
Default method for calculating preferred size.
- GetFormat()
Gets text formatting record.
- GetPreferredSize(PreferredSizeContext)
Retrieves the size of a rectangular area into which a control can be fitted, in device-independent units.
- MeasureText(Graphics, Font, SizeD)
Measures text size.
- OnTextChanged(EventArgs)
Called when the TextChanged event is raised.
- OnVisualStateChanged(EventArgs)
Called when VisualStateChanged property is changed.
- SetFormat(Record)
Sets text formatting record.