Table of Contents

Class TextSelectorLayer

Namespace
Avalonia.Controls.Primitives
Assembly
Avalonia.Controls.dll
public class TextSelectorLayer : Canvas, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue, IChildIndexProvider, INavigableContainer
Inheritance
TextSelectorLayer
Implements
Inherited Members
Extension Methods

Constructors

TextSelectorLayer()

public TextSelectorLayer()

Properties

AvailableSize

public Size AvailableSize { get; }

Property Value

Size

BypassFlowDirectionPolicies

Gets a value indicating whether control bypass FlowDirecton policies.

protected override bool BypassFlowDirectionPolicies { get; }

Property Value

bool

Remarks

Related to FlowDirection system and returns false as default, so if FlowDirection is RTL then control will get a mirror presentation. For controls that want to avoid this behavior, override this property and return true.

Methods

Add(Control)

public void Add(Control control)

Parameters

control Control

ArrangeOverride(Size)

Arranges the control's children.

protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize Size

The size allocated to the control.

Returns

Size

The space taken.

GetTextSelectorLayer(Visual)

public static TextSelectorLayer? GetTextSelectorLayer(Visual visual)

Parameters

visual Visual

Returns

TextSelectorLayer

MeasureOverride(Size)

Measures the control.

protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize Size

The available size.

Returns

Size

The desired size of the control.

Remove(Control)

public void Remove(Control control)

Parameters

control Control