콘텐츠로 이동

SyntaxViewer class

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

Read-only, virtualized text surface for syntax and diagnostic extensions.

Guide: C# Markup reference: Element

public sealed class SyntaxViewer : Control, ITextViewHost
name description
SyntaxViewer() The default constructor.
ClipboardService { get; set; } Gets or sets an optional clipboard override for hosted editors and tests.
DefaultBaseline { get; }
DefaultLineHeight { get; }
Document { get; } Gets the document whose text the view presents; it is replaced whole when Text changes.
Extensions { get; } Gets the extension pipeline of the text view.
ExtentHeight { get; }
ExtentWidth { get; }
HorizontalOffset { get; } Gets the horizontal scroll offset in DIPs.
Layers { get; }
ScrollOffset { get; }
SelectedText { get; } Gets the currently selected text.
SelectionBackground { get; set; } Gets or sets the color painted behind the selected text; the default style dims it while the control does not have focus.
SelectionForeground { get; set; } Gets or sets the color the selected glyphs are painted in; null keeps their own colors, so a colorized document stays readable through a selection.
SelectionLength { get; } Gets the selection length in UTF-16 code units.
SelectionStart { get; } Gets the selection start as a character index.
TabSize { get; set; } Gets or sets the tab width in space characters.
Text { get; set; } Gets or sets the text presented.
TextViewportBounds { get; }
VerticalOffset { get; } Gets the vertical scroll offset in DIPs.
VisibleTextLines { get; }
Wrap { get; set; } Gets or sets whether lines wrap at the viewport width.
event DocumentChanged Raised after the document was replaced by a Text change.
event LineConstructionStarting
event LinesChanged
event ScrollOffsetChanged
Copy()
FindLineByY(…)
GetLineExtent(…)
GetLineLayout(…)
GetLineY(…)
InsertLayer(…)
InvalidateLayer(…)
InvalidateTextRange(…)
InvalidateTextView() Re-runs registered classifiers, generators, projections, and layers.
override InvalidateVisual() Discards the viewer’s own drawing and every layer’s, unless only the frame changed.
MakeVisible(…)
Select(…)
SelectAll()
static readonly SelectionBackgroundProperty
static readonly SelectionForegroundProperty
static readonly TabSizeProperty
static readonly TextProperty
static readonly WrapProperty