Table of Contents

Class GenericTextControl

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Implements simple text control which can paint text without new line characters and wrapping.

public class GenericTextControl : GenericControl, IBaseObjectWithId, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo
Inheritance
GenericTextControl
Implements
Derived

Constructors

GenericTextControl()

Initializes a new instance of the GenericTextControl class.

Fields

ShowDebugCorners

Gets or sets whether to show debug corners when control is painted.

Properties

TextForPaint

Gets text for painting.

Methods

DefaultPaint(PaintEventArgs)

Default painting method of the GenericControl and its descendants.

DrawText(Graphics, RectD, Font, Color, Color)

Paints text on the canvas.

GetDefaultPreferredSize(SizeD, bool, Func<SizeD, SizeD>)

Default method for calculating preferred size.

GetPreferredSize(SizeD)

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.