New to Telerik UI for WinForms? Start a free 30-day trial

Hosts a wrapping label used to display completion descriptions and overload signatures.

Definition

Namespace:Telerik.WinForms.Controls.SyntaxEditor.UI

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public class TextContainerUserControl : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlUserControlTextContainerUserControl...

Implements: IBindableComponentIComponentIContainerControlIDisposableIDropTargetISynchronizeInvokeIWin32Window...

Constructors

Creates the text container and its wrapped label.

C#
public TextContainerUserControl()

Properties

Gets or sets the font applied to the child label.

C#
public Font Font { get; set; }

Gets the label that renders this container's content.

C#
public RadLabel Label { get; }

Gets or sets the text displayed by the child label; this hides the inherited control text property.

C#
public string Text { get; set; }

Methods

Clean up any resources being used.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true if managed resources should be disposed; otherwise, false.

Overrides: ContainerControl.Dispose(bool)

Measures the wrapped label text after descaling the available size for the label's current DPI scale.

C#
public Size GetDesiredSize(SizeF availableSize)
Parameters:availableSizeSizeF

The maximum size available for the label.

Returns:

Size

The label size after its element tree has been measured.