Table of Contents

Class SkiaEditorSelection

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public class SkiaEditorSelection : SkiaControl, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IVisualElementController, IElementController, IView, ITransform, IElement, IVisualTreeElement, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISkiaGestureListener, IHasAfterEffects, ISkiaControl, IDrawnBase, ICanBeUpdatedWithContext, ICanBeUpdated, ISkiaDisposable, IDisposable
Inheritance
SkiaEditorSelection
Implements
Inherited Members
Extension Methods

Properties

GetLineGlyphsOverride

When set, used instead of Spans[0].Glyphs to support multi-span lines.

public Func<TextLine, LineGlyph[]>? GetLineGlyphsOverride { get; set; }

Property Value

Func<TextLine, LineGlyph[]>

LeftHandleCenter

public SKPoint LeftHandleCenter { get; }

Property Value

SKPoint

RightHandleCenter

public SKPoint RightHandleCenter { get; }

Property Value

SKPoint

SelectionColor

public Color SelectionColor { get; set; }

Property Value

Color

SelectionLength

public int SelectionLength { get; set; }

Property Value

int

SelectionStart

public int SelectionStart { get; set; }

Property Value

int

SourceLabel

public SkiaLabel SourceLabel { get; set; }

Property Value

SkiaLabel

Methods

OnDisposing()

Base performs some cleanup actions with Superview

public override void OnDisposing()

Paint(DrawingContext)

This is the main drawing routine you should override to draw something. Base one paints background color inside DrawingRect that was defined by Arrange inside base.Draw. Pass arguments if you want to use some time-frozen data for painting at any time from any thread..

protected override void Paint(DrawingContext ctx)

Parameters

ctx DrawingContext