콘텐츠로 이동

TextViewLayerStack class

이 콘텐츠는 아직 번역되지 않았습니다.

Draw order of a text view: the four built-in anchors plus whatever an extension inserted around them. The host paints an anchor’s own content when it is still present, so replacing one hands that drawing to the caller.

public sealed class TextViewLayerStack
name description
TextViewLayerStack(…) Creates the stack with the host’s own drawing already in it. The host passes one layer per anchor, so its background, selection, glyph and caret passes are ordinary entries rather than a callback the stack has to ask for.
Layers { get; } Layers in draw order, the host’s built-in ones included.
event Changed Raised when the order changed, so the host can repaint.
Draw(…) Draws every layer in order.
Insert(…) Inserts layer relative to anchor.