This commit is contained in:
Brad Robinson 2020-12-09 21:37:49 +11:00
Родитель d16e8f73f5
Коммит 1152ccde0b
239 изменённых файлов: 12047 добавлений и 318 удалений

Просмотреть файл

@ -22,7 +22,7 @@ project:
# The assemblies for which documentation should be generated,
# .xml files are expected in the same location
assemblies:
- ./Build/Release/Topten.RichTextKit/netcoreapp2.0/Topten.RichTextKit.dll
- ./Build/Release/Topten.RichTextKit/netcoreapp2.1/Topten.RichTextKit.dll
# Namespaces to be assumed when formatting fully qualified type names
namespaces:

Просмотреть файл

@ -1,6 +1,6 @@
---
projectTitle: RichTextKit
projectSubTitle: v0.3
projectSubTitle: v0.4
projectUrlPrefix: /richtextkit/
prismLanguages:
- csharp
@ -39,10 +39,19 @@ navTree:
- text: CaretRectangle|./ref/Topten.RichTextKit.CaretInfo.CaretRectangle
- text: CaretXCoord|./ref/Topten.RichTextKit.CaretInfo.CaretXCoord
- text: CodePointIndex|./ref/Topten.RichTextKit.CaretInfo.CodePointIndex
- text: LineIndex|./ref/Topten.RichTextKit.CaretInfo.LineIndex
- text: None|./ref/Topten.RichTextKit.CaretInfo.None
- text: Properties
subItems:
- text: IsNone|./ref/Topten.RichTextKit.CaretInfo.IsNone
- text: CaretPosition
subItems:
- text: Overview|./ref/Topten.RichTextKit.CaretPosition
- text: Constructors|./ref/Topten.RichTextKit.CaretPosition..ctor
- text: Fields
subItems:
- text: AltPosition|./ref/Topten.RichTextKit.CaretPosition.AltPosition
- text: CodePointIndex|./ref/Topten.RichTextKit.CaretPosition.CodePointIndex
- text: FontFallback
subItems:
- text: Overview|./ref/Topten.RichTextKit.FontFallback
@ -117,6 +126,7 @@ navTree:
- text: Overview|./ref/Topten.RichTextKit.HitTestResult
- text: Fields
subItems:
- text: AltCaretPosition|./ref/Topten.RichTextKit.HitTestResult.AltCaretPosition
- text: ClosestCodePointIndex|./ref/Topten.RichTextKit.HitTestResult.ClosestCodePointIndex
- text: ClosestLine|./ref/Topten.RichTextKit.HitTestResult.ClosestLine
- text: None|./ref/Topten.RichTextKit.HitTestResult.None
@ -124,6 +134,7 @@ navTree:
- text: OverLine|./ref/Topten.RichTextKit.HitTestResult.OverLine
- text: Properties
subItems:
- text: CaretPosition|./ref/Topten.RichTextKit.HitTestResult.CaretPosition
- text: IsNone|./ref/Topten.RichTextKit.HitTestResult.IsNone
- text: ICharacterMatcher
subItems:
@ -143,6 +154,7 @@ navTree:
- text: FontWeight|./ref/Topten.RichTextKit.IStyle.FontWeight
- text: LetterSpacing|./ref/Topten.RichTextKit.IStyle.LetterSpacing
- text: LineHeight|./ref/Topten.RichTextKit.IStyle.LineHeight
- text: ReplacementCharacter|./ref/Topten.RichTextKit.IStyle.ReplacementCharacter
- text: StrikeThrough|./ref/Topten.RichTextKit.IStyle.StrikeThrough
- text: TextColor|./ref/Topten.RichTextKit.IStyle.TextColor
- text: TextDirection|./ref/Topten.RichTextKit.IStyle.TextDirection
@ -219,6 +231,7 @@ navTree:
- text: FontWeight|./ref/Topten.RichTextKit.Style.FontWeight
- text: LetterSpacing|./ref/Topten.RichTextKit.Style.LetterSpacing
- text: LineHeight|./ref/Topten.RichTextKit.Style.LineHeight
- text: ReplacementCharacter|./ref/Topten.RichTextKit.Style.ReplacementCharacter
- text: StrikeThrough|./ref/Topten.RichTextKit.Style.StrikeThrough
- text: TextColor|./ref/Topten.RichTextKit.Style.TextColor
- text: TextDirection|./ref/Topten.RichTextKit.Style.TextDirection
@ -227,10 +240,39 @@ navTree:
subItems:
- text: Modify|./ref/Topten.RichTextKit.Style.Modify
- text: Seal|./ref/Topten.RichTextKit.Style.Seal
- text: StyledText
subItems:
- text: Overview|./ref/Topten.RichTextKit.StyledText
- text: Constructors|./ref/Topten.RichTextKit.StyledText..ctor
- text: Fields
subItems:
- text: _codePoints|./ref/Topten.RichTextKit.StyledText._codePoints
- text: _hasTextDirectionOverrides|./ref/Topten.RichTextKit.StyledText._hasTextDirectionOverrides
- text: _styleRuns|./ref/Topten.RichTextKit.StyledText._styleRuns
- text: Properties
subItems:
- text: CodePoints|./ref/Topten.RichTextKit.StyledText.CodePoints
- text: Length|./ref/Topten.RichTextKit.StyledText.Length
- text: StyleRuns|./ref/Topten.RichTextKit.StyledText.StyleRuns
- text: Methods
subItems:
- text: AddText|./ref/Topten.RichTextKit.StyledText.AddText
- text: ApplyStyle|./ref/Topten.RichTextKit.StyledText.ApplyStyle
- text: CharacterToCodePointIndex|./ref/Topten.RichTextKit.StyledText.CharacterToCodePointIndex
- text: Clear|./ref/Topten.RichTextKit.StyledText.Clear
- text: CodePointToCharacterIndex|./ref/Topten.RichTextKit.StyledText.CodePointToCharacterIndex
- text: DeleteText|./ref/Topten.RichTextKit.StyledText.DeleteText
- text: Extract|./ref/Topten.RichTextKit.StyledText.Extract
- text: GetStyleAtOffset|./ref/Topten.RichTextKit.StyledText.GetStyleAtOffset
- text: InsertText|./ref/Topten.RichTextKit.StyledText.InsertText
- text: OnChanged|./ref/Topten.RichTextKit.StyledText.OnChanged
- text: StyleManager
subItems:
- text: Overview|./ref/Topten.RichTextKit.StyleManager
- text: Constructors|./ref/Topten.RichTextKit.StyleManager..ctor
- text: Fields
subItems:
- text: Default|./ref/Topten.RichTextKit.StyleManager.Default
- text: Properties
subItems:
- text: CurrentStyle|./ref/Topten.RichTextKit.StyleManager.CurrentStyle
@ -248,6 +290,7 @@ navTree:
- text: LineHeight|./ref/Topten.RichTextKit.StyleManager.LineHeight
- text: Pop|./ref/Topten.RichTextKit.StyleManager.Pop
- text: Push|./ref/Topten.RichTextKit.StyleManager.Push
- text: ReplacementCharacter|./ref/Topten.RichTextKit.StyleManager.ReplacementCharacter
- text: Reset|./ref/Topten.RichTextKit.StyleManager.Reset
- text: StrikeThrough|./ref/Topten.RichTextKit.StyleManager.StrikeThrough
- text: TextColor|./ref/Topten.RichTextKit.StyleManager.TextColor
@ -265,7 +308,12 @@ navTree:
- text: Length|./ref/Topten.RichTextKit.StyleRun.Length
- text: Start|./ref/Topten.RichTextKit.StyleRun.Start
- text: Style|./ref/Topten.RichTextKit.StyleRun.Style
- text: TextBlock|./ref/Topten.RichTextKit.StyleRun.TextBlock
- text: SwapHelper
subItems:
- text: Overview|./ref/Topten.RichTextKit.SwapHelper
- text: Methods
subItems:
- text: Swap<T>|./ref/Topten.RichTextKit.SwapHelper.Swap[T]
- text: TextAlignment
subItems:
- text: Overview|./ref/Topten.RichTextKit.TextAlignment
@ -280,8 +328,8 @@ navTree:
- text: CaretIndicies|./ref/Topten.RichTextKit.TextBlock.CaretIndicies
- text: FontMapper|./ref/Topten.RichTextKit.TextBlock.FontMapper
- text: FontRuns|./ref/Topten.RichTextKit.TextBlock.FontRuns
- text: Length|./ref/Topten.RichTextKit.TextBlock.Length
- text: LineCount|./ref/Topten.RichTextKit.TextBlock.LineCount
- text: LineIndicies|./ref/Topten.RichTextKit.TextBlock.LineIndicies
- text: Lines|./ref/Topten.RichTextKit.TextBlock.Lines
- text: MaxHeight|./ref/Topten.RichTextKit.TextBlock.MaxHeight
- text: MaxLines|./ref/Topten.RichTextKit.TextBlock.MaxLines
@ -291,18 +339,16 @@ navTree:
- text: MeasuredOverhang|./ref/Topten.RichTextKit.TextBlock.MeasuredOverhang
- text: MeasuredPadding|./ref/Topten.RichTextKit.TextBlock.MeasuredPadding
- text: MeasuredWidth|./ref/Topten.RichTextKit.TextBlock.MeasuredWidth
- text: StyleRuns|./ref/Topten.RichTextKit.TextBlock.StyleRuns
- text: Truncated|./ref/Topten.RichTextKit.TextBlock.Truncated
- text: WordBoundaryIndicies|./ref/Topten.RichTextKit.TextBlock.WordBoundaryIndicies
- text: Methods
subItems:
- text: AddEllipsis|./ref/Topten.RichTextKit.TextBlock.AddEllipsis
- text: AddText|./ref/Topten.RichTextKit.TextBlock.AddText
- text: CharacterToCodePointIndex|./ref/Topten.RichTextKit.TextBlock.CharacterToCodePointIndex
- text: Clear|./ref/Topten.RichTextKit.TextBlock.Clear
- text: CodePointToCharacterIndex|./ref/Topten.RichTextKit.TextBlock.CodePointToCharacterIndex
- text: Copy|./ref/Topten.RichTextKit.TextBlock.Copy
- text: FindFontRunForCodePointIndex|./ref/Topten.RichTextKit.TextBlock.FindFontRunForCodePointIndex
- text: GetCaretInfo|./ref/Topten.RichTextKit.TextBlock.GetCaretInfo
- text: HitTest|./ref/Topten.RichTextKit.TextBlock.HitTest
- text: HitTestLine|./ref/Topten.RichTextKit.TextBlock.HitTestLine
- text: Layout|./ref/Topten.RichTextKit.TextBlock.Layout
- text: LookupCaretIndex|./ref/Topten.RichTextKit.TextBlock.LookupCaretIndex
- text: Paint|./ref/Topten.RichTextKit.TextBlock.Paint
@ -330,6 +376,9 @@ navTree:
- text: TextHeight|./ref/Topten.RichTextKit.TextLine.TextHeight
- text: Width|./ref/Topten.RichTextKit.TextLine.Width
- text: YCoord|./ref/Topten.RichTextKit.TextLine.YCoord
- text: Methods
subItems:
- text: HitTest|./ref/Topten.RichTextKit.TextLine.HitTest
- text: TextPaintOptions
subItems:
- text: Overview|./ref/Topten.RichTextKit.TextPaintOptions
@ -341,15 +390,141 @@ navTree:
subItems:
- text: IsAntialias|./ref/Topten.RichTextKit.TextPaintOptions.IsAntialias
- text: LcdRenderText|./ref/Topten.RichTextKit.TextPaintOptions.LcdRenderText
- text: Selection|./ref/Topten.RichTextKit.TextPaintOptions.Selection
- text: SelectionColor|./ref/Topten.RichTextKit.TextPaintOptions.SelectionColor
- text: SelectionEnd|./ref/Topten.RichTextKit.TextPaintOptions.SelectionEnd
- text: SelectionStart|./ref/Topten.RichTextKit.TextPaintOptions.SelectionStart
- text: Methods
subItems:
- text: Clone|./ref/Topten.RichTextKit.TextPaintOptions.Clone
- text: TextRange
subItems:
- text: Overview|./ref/Topten.RichTextKit.TextRange
- text: Constructors|./ref/Topten.RichTextKit.TextRange..ctor
- text: Fields
subItems:
- text: AltPosition|./ref/Topten.RichTextKit.TextRange.AltPosition
- text: End|./ref/Topten.RichTextKit.TextRange.End
- text: Start|./ref/Topten.RichTextKit.TextRange.Start
- text: Properties
subItems:
- text: CaretPosition|./ref/Topten.RichTextKit.TextRange.CaretPosition
- text: IsRange|./ref/Topten.RichTextKit.TextRange.IsRange
- text: Length|./ref/Topten.RichTextKit.TextRange.Length
- text: Maximum|./ref/Topten.RichTextKit.TextRange.Maximum
- text: Minimum|./ref/Topten.RichTextKit.TextRange.Minimum
- text: Normalized|./ref/Topten.RichTextKit.TextRange.Normalized
- text: Reversed|./ref/Topten.RichTextKit.TextRange.Reversed
- text: Methods
subItems:
- text: Clamp|./ref/Topten.RichTextKit.TextRange.Clamp
- text: IsEqual|./ref/Topten.RichTextKit.TextRange.IsEqual
- text: Offset|./ref/Topten.RichTextKit.TextRange.Offset
- text: Union|./ref/Topten.RichTextKit.TextRange.Union
- text: UpdateForEdit|./ref/Topten.RichTextKit.TextRange.UpdateForEdit
- text: UnderlineStyle
subItems:
- text: Overview|./ref/Topten.RichTextKit.UnderlineStyle
- text: Topten.RichTextKit.Editor
href: ./ref/Topten.RichTextKit.Editor
subItems:
- text: DocumentChangeInfo
subItems:
- text: Overview|./ref/Topten.RichTextKit.Editor.DocumentChangeInfo
- text: Fields
subItems:
- text: CodePointIndex|./ref/Topten.RichTextKit.Editor.DocumentChangeInfo.CodePointIndex
- text: ImeCaretOffset|./ref/Topten.RichTextKit.Editor.DocumentChangeInfo.ImeCaretOffset
- text: IsUndoing|./ref/Topten.RichTextKit.Editor.DocumentChangeInfo.IsUndoing
- text: NewLength|./ref/Topten.RichTextKit.Editor.DocumentChangeInfo.NewLength
- text: OldLength|./ref/Topten.RichTextKit.Editor.DocumentChangeInfo.OldLength
- text: Semantics|./ref/Topten.RichTextKit.Editor.DocumentChangeInfo.Semantics
- text: EditSemantics
subItems:
- text: Overview|./ref/Topten.RichTextKit.Editor.EditSemantics
- text: ITextDocumentView
subItems:
- text: Overview|./ref/Topten.RichTextKit.Editor.ITextDocumentView
- text: Methods
subItems:
- text: OnDocumentChange|./ref/Topten.RichTextKit.Editor.ITextDocumentView.OnDocumentChange
- text: OnDocumentDidChange|./ref/Topten.RichTextKit.Editor.ITextDocumentView.OnDocumentDidChange
- text: OnDocumentWillChange|./ref/Topten.RichTextKit.Editor.ITextDocumentView.OnDocumentWillChange
- text: OnRedraw|./ref/Topten.RichTextKit.Editor.ITextDocumentView.OnRedraw
- text: OnReset|./ref/Topten.RichTextKit.Editor.ITextDocumentView.OnReset
- text: NavigationKind
subItems:
- text: Overview|./ref/Topten.RichTextKit.Editor.NavigationKind
- text: Paragraph
subItems:
- text: Overview|./ref/Topten.RichTextKit.Editor.Paragraph
- text: Constructors|./ref/Topten.RichTextKit.Editor.Paragraph..ctor
- text: Properties
subItems:
- text: CaretIndicies|./ref/Topten.RichTextKit.Editor.Paragraph.CaretIndicies
- text: CodePointIndex|./ref/Topten.RichTextKit.Editor.Paragraph.CodePointIndex
- text: ContentHeight|./ref/Topten.RichTextKit.Editor.Paragraph.ContentHeight
- text: ContentWidth|./ref/Topten.RichTextKit.Editor.Paragraph.ContentWidth
- text: ContentXCoord|./ref/Topten.RichTextKit.Editor.Paragraph.ContentXCoord
- text: ContentYCoord|./ref/Topten.RichTextKit.Editor.Paragraph.ContentYCoord
- text: Length|./ref/Topten.RichTextKit.Editor.Paragraph.Length
- text: LineIndicies|./ref/Topten.RichTextKit.Editor.Paragraph.LineIndicies
- text: MarginBottom|./ref/Topten.RichTextKit.Editor.Paragraph.MarginBottom
- text: MarginLeft|./ref/Topten.RichTextKit.Editor.Paragraph.MarginLeft
- text: MarginRight|./ref/Topten.RichTextKit.Editor.Paragraph.MarginRight
- text: MarginTop|./ref/Topten.RichTextKit.Editor.Paragraph.MarginTop
- text: TextBlock|./ref/Topten.RichTextKit.Editor.Paragraph.TextBlock
- text: WordBoundaryIndicies|./ref/Topten.RichTextKit.Editor.Paragraph.WordBoundaryIndicies
- text: Methods
subItems:
- text: CopyStyleFrom|./ref/Topten.RichTextKit.Editor.Paragraph.CopyStyleFrom
- text: GetCaretInfo|./ref/Topten.RichTextKit.Editor.Paragraph.GetCaretInfo
- text: HitTest|./ref/Topten.RichTextKit.Editor.Paragraph.HitTest
- text: HitTestLine|./ref/Topten.RichTextKit.Editor.Paragraph.HitTestLine
- text: Layout|./ref/Topten.RichTextKit.Editor.Paragraph.Layout
- text: Paint|./ref/Topten.RichTextKit.Editor.Paragraph.Paint
- text: SelectionKind
subItems:
- text: Overview|./ref/Topten.RichTextKit.Editor.SelectionKind
- text: TextDocument
subItems:
- text: Overview|./ref/Topten.RichTextKit.Editor.TextDocument
- text: Constructors|./ref/Topten.RichTextKit.Editor.TextDocument..ctor
- text: Properties
subItems:
- text: DefaultStyle|./ref/Topten.RichTextKit.Editor.TextDocument.DefaultStyle
- text: ImeCompositionOffset|./ref/Topten.RichTextKit.Editor.TextDocument.ImeCompositionOffset
- text: IsImeComposing|./ref/Topten.RichTextKit.Editor.TextDocument.IsImeComposing
- text: Length|./ref/Topten.RichTextKit.Editor.TextDocument.Length
- text: LineWrap|./ref/Topten.RichTextKit.Editor.TextDocument.LineWrap
- text: MarginBottom|./ref/Topten.RichTextKit.Editor.TextDocument.MarginBottom
- text: MarginLeft|./ref/Topten.RichTextKit.Editor.TextDocument.MarginLeft
- text: MarginRight|./ref/Topten.RichTextKit.Editor.TextDocument.MarginRight
- text: MarginTop|./ref/Topten.RichTextKit.Editor.TextDocument.MarginTop
- text: MeasuredHeight|./ref/Topten.RichTextKit.Editor.TextDocument.MeasuredHeight
- text: MeasuredWidth|./ref/Topten.RichTextKit.Editor.TextDocument.MeasuredWidth
- text: PageWidth|./ref/Topten.RichTextKit.Editor.TextDocument.PageWidth
- text: PlainTextMode|./ref/Topten.RichTextKit.Editor.TextDocument.PlainTextMode
- text: SingleLineMode|./ref/Topten.RichTextKit.Editor.TextDocument.SingleLineMode
- text: Text|./ref/Topten.RichTextKit.Editor.TextDocument.Text
- text: UndoManager|./ref/Topten.RichTextKit.Editor.TextDocument.UndoManager
- text: Methods
subItems:
- text: FinishImeComposition|./ref/Topten.RichTextKit.Editor.TextDocument.FinishImeComposition
- text: GetCaretInfo|./ref/Topten.RichTextKit.Editor.TextDocument.GetCaretInfo
- text: GetOvertypeRange|./ref/Topten.RichTextKit.Editor.TextDocument.GetOvertypeRange
- text: GetSelectionRange|./ref/Topten.RichTextKit.Editor.TextDocument.GetSelectionRange
- text: GetStyleAtOffset|./ref/Topten.RichTextKit.Editor.TextDocument.GetStyleAtOffset
- text: GetText|./ref/Topten.RichTextKit.Editor.TextDocument.GetText
- text: HitTest|./ref/Topten.RichTextKit.Editor.TextDocument.HitTest
- text: Navigate|./ref/Topten.RichTextKit.Editor.TextDocument.Navigate
- text: Paint|./ref/Topten.RichTextKit.Editor.TextDocument.Paint
- text: Redo|./ref/Topten.RichTextKit.Editor.TextDocument.Redo
- text: RegisterView|./ref/Topten.RichTextKit.Editor.TextDocument.RegisterView
- text: ReplaceText|./ref/Topten.RichTextKit.Editor.TextDocument.ReplaceText
- text: RevokeView|./ref/Topten.RichTextKit.Editor.TextDocument.RevokeView
- text: SetMargins|./ref/Topten.RichTextKit.Editor.TextDocument.SetMargins
- text: StartImeComposition|./ref/Topten.RichTextKit.Editor.TextDocument.StartImeComposition
- text: Undo|./ref/Topten.RichTextKit.Editor.TextDocument.Undo
- text: UpdateImeComposition|./ref/Topten.RichTextKit.Editor.TextDocument.UpdateImeComposition
- text: Topten.RichTextKit.Utils
href: ./ref/Topten.RichTextKit.Utils
subItems:
@ -358,7 +533,7 @@ navTree:
- text: Overview|./ref/Topten.RichTextKit.Utils.BinarySearchExtension
- text: Methods
subItems:
- text: BinarySearch<T,U>|./ref/Topten.RichTextKit.Utils.BinarySearchExtension.BinarySearch[T,U]
- text: BinarySearch<T>|./ref/Topten.RichTextKit.Utils.BinarySearchExtension.BinarySearch[T]
- text: Buffer<T>
subItems:
- text: Overview|./ref/Topten.RichTextKit.Utils.Buffer[T]
@ -367,12 +542,25 @@ navTree:
subItems:
- text: Item|./ref/Topten.RichTextKit.Utils.Buffer[T].Item
- text: Length|./ref/Topten.RichTextKit.Utils.Buffer[T].Length
- text: Underlying|./ref/Topten.RichTextKit.Utils.Buffer[T].Underlying
- text: Methods
subItems:
- text: Add|./ref/Topten.RichTextKit.Utils.Buffer[T].Add
- text: AsSlice|./ref/Topten.RichTextKit.Utils.Buffer[T].AsSlice
- text: Clear|./ref/Topten.RichTextKit.Utils.Buffer[T].Clear
- text: Delete|./ref/Topten.RichTextKit.Utils.Buffer[T].Delete
- text: GetRanges|./ref/Topten.RichTextKit.Utils.Buffer[T].GetRanges
- text: Insert|./ref/Topten.RichTextKit.Utils.Buffer[T].Insert
- text: Replace|./ref/Topten.RichTextKit.Utils.Buffer[T].Replace
- text: Split|./ref/Topten.RichTextKit.Utils.Buffer[T].Split
- text: SubSlice|./ref/Topten.RichTextKit.Utils.Buffer[T].SubSlice
- text: IRun
subItems:
- text: Overview|./ref/Topten.RichTextKit.Utils.IRun
- text: Properties
subItems:
- text: Length|./ref/Topten.RichTextKit.Utils.IRun.Length
- text: Offset|./ref/Topten.RichTextKit.Utils.IRun.Offset
- text: MappedSlice<T>
subItems:
- text: Overview|./ref/Topten.RichTextKit.Utils.MappedSlice[T]
@ -386,6 +574,15 @@ navTree:
- text: Methods
subItems:
- text: ToArray|./ref/Topten.RichTextKit.Utils.MappedSlice[T].ToArray
- text: RunExtensions
subItems:
- text: Overview|./ref/Topten.RichTextKit.Utils.RunExtensions
- text: Methods
subItems:
- text: CheckValid<T>|./ref/Topten.RichTextKit.Utils.RunExtensions.CheckValid[T]
- text: GetInterectingRuns<T>|./ref/Topten.RichTextKit.Utils.RunExtensions.GetInterectingRuns[T]
- text: GetIntersectingRunsReverse<T>|./ref/Topten.RichTextKit.Utils.RunExtensions.GetIntersectingRunsReverse[T]
- text: TotalLength<T>|./ref/Topten.RichTextKit.Utils.RunExtensions.TotalLength[T]
- text: Slice<T>
subItems:
- text: Overview|./ref/Topten.RichTextKit.Utils.Slice[T]
@ -401,10 +598,86 @@ navTree:
subItems:
- text: AsSpan|./ref/Topten.RichTextKit.Utils.Slice[T].AsSpan
- text: Clear|./ref/Topten.RichTextKit.Utils.Slice[T].Clear
- text: Copy|./ref/Topten.RichTextKit.Utils.Slice[T].Copy
- text: Fill|./ref/Topten.RichTextKit.Utils.Slice[T].Fill
- text: IndexOf|./ref/Topten.RichTextKit.Utils.Slice[T].IndexOf
- text: IndexOfAny|./ref/Topten.RichTextKit.Utils.Slice[T].IndexOfAny
- text: Replace|./ref/Topten.RichTextKit.Utils.Slice[T].Replace
- text: Set|./ref/Topten.RichTextKit.Utils.Slice[T].Set
- text: Split|./ref/Topten.RichTextKit.Utils.Slice[T].Split
- text: SubSlice|./ref/Topten.RichTextKit.Utils.Slice[T].SubSlice
- text: ToArray|./ref/Topten.RichTextKit.Utils.Slice[T].ToArray
- text: SubRun
subItems:
- text: Overview|./ref/Topten.RichTextKit.Utils.SubRun
- text: Constructors|./ref/Topten.RichTextKit.Utils.SubRun..ctor
- text: Fields
subItems:
- text: Index|./ref/Topten.RichTextKit.Utils.SubRun.Index
- text: Length|./ref/Topten.RichTextKit.Utils.SubRun.Length
- text: Offset|./ref/Topten.RichTextKit.Utils.SubRun.Offset
- text: Partial|./ref/Topten.RichTextKit.Utils.SubRun.Partial
- text: UndoGroup<T>
subItems:
- text: Overview|./ref/Topten.RichTextKit.Utils.UndoGroup[T]
- text: Constructors|./ref/Topten.RichTextKit.Utils.UndoGroup[T]..ctor
- text: Properties
subItems:
- text: LastUnit|./ref/Topten.RichTextKit.Utils.UndoGroup[T].LastUnit
- text: Units|./ref/Topten.RichTextKit.Utils.UndoGroup[T].Units
- text: Methods
subItems:
- text: Add|./ref/Topten.RichTextKit.Utils.UndoGroup[T].Add
- text: Insert|./ref/Topten.RichTextKit.Utils.UndoGroup[T].Insert
- text: OnClose|./ref/Topten.RichTextKit.Utils.UndoGroup[T].OnClose
- text: OnOpen|./ref/Topten.RichTextKit.Utils.UndoGroup[T].OnOpen
- text: UndoManager<T>
subItems:
- text: Overview|./ref/Topten.RichTextKit.Utils.UndoManager[T]
- text: Constructors|./ref/Topten.RichTextKit.Utils.UndoManager[T]..ctor
- text: Properties
subItems:
- text: CanRedo|./ref/Topten.RichTextKit.Utils.UndoManager[T].CanRedo
- text: CanUndo|./ref/Topten.RichTextKit.Utils.UndoManager[T].CanUndo
- text: IsModified|./ref/Topten.RichTextKit.Utils.UndoManager[T].IsModified
- text: RedoDescription|./ref/Topten.RichTextKit.Utils.UndoManager[T].RedoDescription
- text: UndoDescription|./ref/Topten.RichTextKit.Utils.UndoManager[T].UndoDescription
- text: Methods
subItems:
- text: Clear|./ref/Topten.RichTextKit.Utils.UndoManager[T].Clear
- text: CloseGroup|./ref/Topten.RichTextKit.Utils.UndoManager[T].CloseGroup
- text: Do|./ref/Topten.RichTextKit.Utils.UndoManager[T].Do
- text: GetRedoUnit|./ref/Topten.RichTextKit.Utils.UndoManager[T].GetRedoUnit
- text: GetUndoUnit|./ref/Topten.RichTextKit.Utils.UndoManager[T].GetUndoUnit
- text: GetUnsealedUnit|./ref/Topten.RichTextKit.Utils.UndoManager[T].GetUnsealedUnit
- text: MarkUnmodified|./ref/Topten.RichTextKit.Utils.UndoManager[T].MarkUnmodified
- text: OnEndOperation|./ref/Topten.RichTextKit.Utils.UndoManager[T].OnEndOperation
- text: OnModifiedChanged|./ref/Topten.RichTextKit.Utils.UndoManager[T].OnModifiedChanged
- text: OnStartOperation|./ref/Topten.RichTextKit.Utils.UndoManager[T].OnStartOperation
- text: OpenGroup|./ref/Topten.RichTextKit.Utils.UndoManager[T].OpenGroup
- text: Redo|./ref/Topten.RichTextKit.Utils.UndoManager[T].Redo
- text: Seal|./ref/Topten.RichTextKit.Utils.UndoManager[T].Seal
- text: Undo|./ref/Topten.RichTextKit.Utils.UndoManager[T].Undo
- text: Events
subItems:
- text: EndOperation|./ref/Topten.RichTextKit.Utils.UndoManager[T].EndOperation
- text: ModifiedChanged|./ref/Topten.RichTextKit.Utils.UndoManager[T].ModifiedChanged
- text: StartOperation|./ref/Topten.RichTextKit.Utils.UndoManager[T].StartOperation
- text: UndoUnit<T>
subItems:
- text: Overview|./ref/Topten.RichTextKit.Utils.UndoUnit[T]
- text: Constructors|./ref/Topten.RichTextKit.Utils.UndoUnit[T]..ctor
- text: Properties
subItems:
- text: Description|./ref/Topten.RichTextKit.Utils.UndoUnit[T].Description
- text: Group|./ref/Topten.RichTextKit.Utils.UndoUnit[T].Group
- text: Sealed|./ref/Topten.RichTextKit.Utils.UndoUnit[T].Sealed
- text: Methods
subItems:
- text: Do|./ref/Topten.RichTextKit.Utils.UndoUnit[T].Do
- text: Redo|./ref/Topten.RichTextKit.Utils.UndoUnit[T].Redo
- text: Seal|./ref/Topten.RichTextKit.Utils.UndoUnit[T].Seal
- text: Undo|./ref/Topten.RichTextKit.Utils.UndoUnit[T].Undo
- text: Utf32Buffer
subItems:
- text: Overview|./ref/Topten.RichTextKit.Utils.Utf32Buffer
@ -413,7 +686,9 @@ navTree:
subItems:
- text: Add|./ref/Topten.RichTextKit.Utils.Utf32Buffer.Add
- text: Clear|./ref/Topten.RichTextKit.Utils.Utf32Buffer.Clear
- text: Delete|./ref/Topten.RichTextKit.Utils.Utf32Buffer.Delete
- text: GetString|./ref/Topten.RichTextKit.Utils.Utf32Buffer.GetString
- text: Insert|./ref/Topten.RichTextKit.Utils.Utf32Buffer.Insert
- text: Utf16OffsetToUtf32Offset|./ref/Topten.RichTextKit.Utils.Utf32Buffer.Utf16OffsetToUtf32Offset
- text: Utf32OffsetToUtf16Offset|./ref/Topten.RichTextKit.Utils.Utf32Buffer.Utf32OffsetToUtf16Offset
- text: Utf32Utils

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "CaretInfo.LineIndex"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">CaretInfo.LineIndex Field</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.CaretInfo">CaretInfo</a><br />
</small>
</p>
<p>Returns the line number that contains the caret</p>
<pre class="language-csharp"><code class="language-csharp">public int LineIndex;</code></pre>
<h2 id="field-type">Field Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -16,7 +16,7 @@ import: "../.common.page"
<p>Used to return caret positioning information from the
<a href="./../ref/Topten.RichTextKit.TextBlock.GetCaretInfo">TextBlock.GetCaretInfo(int)</a> method.</p>
<a href="./../ref/Topten.RichTextKit.TextBlock.GetCaretInfo">TextBlock.GetCaretInfo(CaretPosition)</a> method.</p>
<pre class="language-csharp"><code class="language-csharp">public struct CaretInfo</code></pre>
@ -50,6 +50,11 @@ top-right to bottom-left.</p>
<tr>
<td><a href="./../ref/Topten.RichTextKit.CaretInfo.CodePointIndex">CodePointIndex</a></td>
<td><p>Returns the index of the code point that this caret info refers to.</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.CaretInfo.LineIndex">LineIndex</a></td>
<td><p>Returns the line number that contains the caret</p>
</td>
</tr>
<tr>

Просмотреть файл

@ -0,0 +1,56 @@
---
title: "CaretPosition..ctor"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">CaretPosition Constructor</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.CaretPosition">CaretPosition</a><br />
</small>
</p>
<p>Initializes a CaretPosition</p>
<pre class="language-csharp"><code class="language-csharp">public CaretPosition(int codePointIndex, bool altPosition = false);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a> codePointIndex
</td>
<td><p>The code point index of the caret</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Boolean">bool</a> altPosition
= false </td>
<td><p>Whether the caret should be displayed in its alternative position</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,40 @@
---
title: "CaretPosition.AltPosition"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">CaretPosition.AltPosition Field</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.CaretPosition">CaretPosition</a><br />
</small>
</p>
<p>True to display the caret at the end of the previous line
rather than the start of the following line when the code
point index is exactly on a line break.</p>
<pre class="language-csharp"><code class="language-csharp">public bool AltPosition;</code></pre>
<h2 id="field-type">Field Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Boolean">bool</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "CaretPosition.CodePointIndex"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">CaretPosition.CodePointIndex Field</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.CaretPosition">CaretPosition</a><br />
</small>
</p>
<p>The code point index of the caret insertion point</p>
<pre class="language-csharp"><code class="language-csharp">public int CodePointIndex;</code></pre>
<h2 id="field-type">Field Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,74 @@
---
title: "Topten.RichTextKit.CaretPosition"
isMarkdown: false
import: "../.common.page"
---
<h1 id="definition" data-nav-secondary-text="Definition">CaretPosition Struct</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
</small>
</p>
<p>Stores state information about a caret position</p>
<pre class="language-csharp"><code class="language-csharp">public struct CaretPosition</code></pre>
<h2 id="inherits">Inheritance</h2>
<p>
CaretPosition
&rarr; <a href="https://docs.microsoft.com/dotnet/api/System.ValueType">ValueType</a> &rarr; <a href="https://docs.microsoft.com/dotnet/api/System.Object">object</a> </p>
<h2 id="remarks">Remarks</h2>
<p>The caret position is defined primarily by it's code point
index however there are other attributes that can affect
where it's displayed and how it moves. This structure
encapsulates all the information about the caret required
to position and move it correctly.</p>
<h2 id="constructors">Constructors</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.CaretPosition..ctor">CaretPosition(int, bool)</a></td>
<td><p>Initializes a CaretPosition</p>
</td>
</tr>
</table>
<h2 id="fields">Fields</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.CaretPosition.AltPosition">AltPosition</a></td>
<td><p>True to display the caret at the end of the previous line
rather than the start of the following line when the code
point index is exactly on a line break.</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.CaretPosition.CodePointIndex">CodePointIndex</a></td>
<td><p>The code point index of the caret insertion point</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "DocumentChangeInfo.CodePointIndex"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">DocumentChangeInfo.CodePointIndex Field</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo">DocumentChangeInfo</a><br />
</small>
</p>
<p>The index of the code point index at which the change was made</p>
<pre class="language-csharp"><code class="language-csharp">public int CodePointIndex;</code></pre>
<h2 id="field-type">Field Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "DocumentChangeInfo.ImeCaretOffset"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">DocumentChangeInfo.ImeCaretOffset Field</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo">DocumentChangeInfo</a><br />
</small>
</p>
<p>Offset of the IME caret from the code point index</p>
<pre class="language-csharp"><code class="language-csharp">public int ImeCaretOffset;</code></pre>
<h2 id="field-type">Field Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,39 @@
---
title: "DocumentChangeInfo.IsUndoing"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">DocumentChangeInfo.IsUndoing Field</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo">DocumentChangeInfo</a><br />
</small>
</p>
<p>True if the current edit operation is the result of an
undo operation.</p>
<pre class="language-csharp"><code class="language-csharp">public bool IsUndoing;</code></pre>
<h2 id="field-type">Field Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Boolean">bool</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "DocumentChangeInfo.NewLength"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">DocumentChangeInfo.NewLength Field</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo">DocumentChangeInfo</a><br />
</small>
</p>
<p>Length of the replacement text</p>
<pre class="language-csharp"><code class="language-csharp">public int NewLength;</code></pre>
<h2 id="field-type">Field Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "DocumentChangeInfo.OldLength"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">DocumentChangeInfo.OldLength Field</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo">DocumentChangeInfo</a><br />
</small>
</p>
<p>Length of the text that was replaced</p>
<pre class="language-csharp"><code class="language-csharp">public int OldLength;</code></pre>
<h2 id="field-type">Field Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "DocumentChangeInfo.Semantics"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">DocumentChangeInfo.Semantics Field</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo">DocumentChangeInfo</a><br />
</small>
</p>
<p>Semantics of the edit operation</p>
<pre class="language-csharp"><code class="language-csharp">public EditSemantics Semantics;</code></pre>
<h2 id="field-type">Field Type</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.EditSemantics">EditSemantics</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,79 @@
---
title: "Topten.RichTextKit.Editor.DocumentChangeInfo"
isMarkdown: false
import: "../.common.page"
---
<h1 id="definition" data-nav-secondary-text="Definition">DocumentChangeInfo Struct</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
</small>
</p>
<p>Provides information about the range of changes to a document</p>
<pre class="language-csharp"><code class="language-csharp">public struct DocumentChangeInfo</code></pre>
<h2 id="inherits">Inheritance</h2>
<p>
DocumentChangeInfo
&rarr; <a href="https://docs.microsoft.com/dotnet/api/System.ValueType">ValueType</a> &rarr; <a href="https://docs.microsoft.com/dotnet/api/System.Object">object</a> </p>
<h2 id="fields">Fields</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo.CodePointIndex">CodePointIndex</a></td>
<td><p>The index of the code point index at which the change was made</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo.ImeCaretOffset">ImeCaretOffset</a></td>
<td><p>Offset of the IME caret from the code point index</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo.IsUndoing">IsUndoing</a></td>
<td><p>True if the current edit operation is the result of an
undo operation.</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo.NewLength">NewLength</a></td>
<td><p>Length of the replacement text</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo.OldLength">OldLength</a></td>
<td><p>Length of the text that was replaced</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo.Semantics">Semantics</a></td>
<td><p>Semantics of the edit operation</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,80 @@
---
title: "Topten.RichTextKit.Editor.EditSemantics"
isMarkdown: false
import: "../.common.page"
---
<h1 id="definition" data-nav-secondary-text="Definition">EditSemantics Enum</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
</small>
</p>
<p>Defines various semantics for TextDocument edit operations</p>
<pre class="language-csharp"><code class="language-csharp">public enum EditSemantics</code></pre>
<h2 id="members">Members</h2>
<table class="name-value-description">
<tr>
<td>Backspace</td>
<td>1</td>
<td><p>Special behaviour for backspacing over one character</p>
</td>
</tr>
<tr>
<td>ForwardDelete</td>
<td>2</td>
<td><p>Special behaviour for forward deleting text one character</p>
</td>
</tr>
<tr>
<td>ImeComposition</td>
<td>5</td>
<td><p>Special behaviour for displaying the composition string of an IME</p>
</td>
</tr>
<tr>
<td>None</td>
<td>0</td>
<td><p>No special behaviour</p>
</td>
</tr>
<tr>
<td>Overtype</td>
<td>4</td>
<td><p>Special behaviour for overtyping existing text</p>
</td>
</tr>
<tr>
<td>Typing</td>
<td>3</td>
<td><p>Special behaviour typing text one character at time</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,57 @@
---
title: "ITextDocumentView.OnDocumentChange"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">ITextDocumentView.OnDocumentChange Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a><br />
</small>
</p>
<p>Notifies a view that the document has changed and provides
information about which parts of the document were changed.</p>
<pre class="language-csharp"><code class="language-csharp">void OnDocumentChange(ITextDocumentView view, DocumentChangeInfo info);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The view initiating the change</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo">DocumentChangeInfo</a> info
</td>
<td><p>Information about the change</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,48 @@
---
title: "ITextDocumentView.OnDocumentDidChange"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">ITextDocumentView.OnDocumentDidChange Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a><br />
</small>
</p>
<p>Notifies that the document has finished changing</p>
<pre class="language-csharp"><code class="language-csharp">void OnDocumentDidChange(ITextDocumentView view);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The view initiating the change</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,48 @@
---
title: "ITextDocumentView.OnDocumentWillChange"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">ITextDocumentView.OnDocumentWillChange Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a><br />
</small>
</p>
<p>Notifies that the document is about to change</p>
<pre class="language-csharp"><code class="language-csharp">void OnDocumentWillChange(ITextDocumentView view);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The view initiating the change</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,40 @@
---
title: "ITextDocumentView.OnRedraw"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">ITextDocumentView.OnRedraw Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a><br />
</small>
</p>
<p>Notifies that something other than the content of the document
has changed (eg: margins) and the view needs to be redrawn but
the same selection can be maintained</p>
<pre class="language-csharp"><code class="language-csharp">void OnRedraw();</code></pre>

Просмотреть файл

@ -0,0 +1,39 @@
---
title: "ITextDocumentView.OnReset"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">ITextDocumentView.OnReset Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a><br />
</small>
</p>
<p>Notifies that the view needs to be reset, typically because
the entire content has been reloaded or updated</p>
<pre class="language-csharp"><code class="language-csharp">void OnReset();</code></pre>

Просмотреть файл

@ -0,0 +1,73 @@
---
title: "Topten.RichTextKit.Editor.ITextDocumentView"
isMarkdown: false
import: "../.common.page"
---
<h1 id="definition" data-nav-secondary-text="Definition">ITextDocumentView Interface</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
</small>
</p>
<p>Interface implemented by views of a TextDocument</p>
<pre class="language-csharp"><code class="language-csharp">public interface ITextDocumentView</code></pre>
<h2 id="methods">Methods</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView.OnDocumentChange">OnDocumentChange(ITextDocumentView, DocumentChangeInfo)</a></td>
<td><p>Notifies a view that the document has changed and provides
information about which parts of the document were changed.</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView.OnDocumentDidChange">OnDocumentDidChange(ITextDocumentView)</a></td>
<td><p>Notifies that the document has finished changing</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView.OnDocumentWillChange">OnDocumentWillChange(ITextDocumentView)</a></td>
<td><p>Notifies that the document is about to change</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView.OnRedraw">OnRedraw()</a></td>
<td><p>Notifies that something other than the content of the document
has changed (eg: margins) and the view needs to be redrawn but
the same selection can be maintained</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView.OnReset">OnReset()</a></td>
<td><p>Notifies that the view needs to be reset, typically because
the entire content has been reloaded or updated</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,122 @@
---
title: "Topten.RichTextKit.Editor.NavigationKind"
isMarkdown: false
import: "../.common.page"
---
<h1 id="definition" data-nav-secondary-text="Definition">NavigationKind Enum</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
</small>
</p>
<p>Defines a kind of keyboard navigation</p>
<pre class="language-csharp"><code class="language-csharp">public enum NavigationKind</code></pre>
<h2 id="members">Members</h2>
<table class="name-value-description">
<tr>
<td>CharacterLeft</td>
<td>1</td>
<td><p>Move one character to the left</p>
</td>
</tr>
<tr>
<td>CharacterRight</td>
<td>2</td>
<td><p>Move one character to the right</p>
</td>
</tr>
<tr>
<td>DocumentEnd</td>
<td>12</td>
<td><p>Move to the end of the document</p>
</td>
</tr>
<tr>
<td>DocumentHome</td>
<td>11</td>
<td><p>Move to the top of the document</p>
</td>
</tr>
<tr>
<td>LineDown</td>
<td>4</td>
<td><p>Move down one line</p>
</td>
</tr>
<tr>
<td>LineEnd</td>
<td>10</td>
<td><p>Move to the end of the line</p>
</td>
</tr>
<tr>
<td>LineHome</td>
<td>9</td>
<td><p>Move to the start of the line</p>
</td>
</tr>
<tr>
<td>LineUp</td>
<td>3</td>
<td><p>Move up one line</p>
</td>
</tr>
<tr>
<td>None</td>
<td>0</td>
<td><p>No movement</p>
</td>
</tr>
<tr>
<td>PageDown</td>
<td>8</td>
<td><p>Move down one page</p>
</td>
</tr>
<tr>
<td>PageUp</td>
<td>7</td>
<td><p>Move up one page</p>
</td>
</tr>
<tr>
<td>WordLeft</td>
<td>5</td>
<td><p>Move left one word</p>
</td>
</tr>
<tr>
<td>WordRight</td>
<td>6</td>
<td><p>Move right one word</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "Paragraph..ctor"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph Constructor</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Constructs a new Paragraph</p>
<pre class="language-csharp"><code class="language-csharp">protected Paragraph();</code></pre>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "Paragraph.CaretIndicies"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.CaretIndicies Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Retrieves a list of all valid caret positions</p>
<pre class="language-csharp"><code class="language-csharp">public abstract IReadOnlyList&lt;int&gt; CaretIndicies { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Collections.Generic.IReadOnlyList-1">IReadOnlyList&lt;int&gt;</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,40 @@
---
title: "Paragraph.CodePointIndex"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.CodePointIndex Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>This code point index of this paragraph relative to the start
of the document.</p>
<pre class="language-csharp"><code class="language-csharp">public int CodePointIndex { get; }</code></pre>
<h2 id="remarks">Remarks</h2><p>This property is calculated and assigned by the TextDocument</p>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "Paragraph.ContentHeight"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.ContentHeight Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Qureries the height of this paragraph, excluding margins</p>
<pre class="language-csharp"><code class="language-csharp">public abstract float ContentHeight { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "Paragraph.ContentWidth"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.ContentWidth Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Queries the width of this paragraph, excluding margins</p>
<pre class="language-csharp"><code class="language-csharp">public abstract float ContentWidth { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,39 @@
---
title: "Paragraph.ContentXCoord"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.ContentXCoord Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>The X-coordinate of this paragraph's content (ie: after applying margin)</p>
<pre class="language-csharp"><code class="language-csharp">public float ContentXCoord { get; }</code></pre>
<h2 id="remarks">Remarks</h2><p>This property is calculated and assigned by the TextDocument</p>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,39 @@
---
title: "Paragraph.ContentYCoord"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.ContentYCoord Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>The Y-coordinate of this paragraph's content (ie: after applying margin)</p>
<pre class="language-csharp"><code class="language-csharp">public float ContentYCoord { get; }</code></pre>
<h2 id="remarks">Remarks</h2><p>This property is calculated and assigned by the TextDocument</p>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,48 @@
---
title: "Paragraph.CopyStyleFrom"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.CopyStyleFrom Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Copy all style attributes from this paragraph to another</p>
<pre class="language-csharp"><code class="language-csharp">public virtual void CopyStyleFrom(Paragraph other);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a> other
</td>
<td><p>The paragraph to copy style from</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,56 @@
---
title: "Paragraph.GetCaretInfo"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.GetCaretInfo Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Get caret position information</p>
<pre class="language-csharp"><code class="language-csharp">public abstract Topten.RichTextKit.CaretInfo GetCaretInfo(Topten.RichTextKit.CaretPosition position);</code></pre>
<h2 id="remarks">Remarks</h2><p>The returned caret info should be relative to the paragraph's content</p>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.CaretPosition">Topten.RichTextKit.CaretPosition</a> position
</td>
<td><p>The caret position</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.CaretInfo">Topten.RichTextKit.CaretInfo</a></td>
<td><p>A CaretInfo struct, or CaretInfo.None</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,63 @@
---
title: "Paragraph.HitTest"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.HitTest Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Hit test this paragraph</p>
<pre class="language-csharp"><code class="language-csharp">public abstract Topten.RichTextKit.HitTestResult HitTest(float x, float y);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> x
</td>
<td><p>The x-coordinate relative to top left of the paragraph content</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> y
</td>
<td><p>The x-coordinate relative to top left of the paragraph content</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.HitTestResult">Topten.RichTextKit.HitTestResult</a></td>
<td><p>A HitTestResult</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,64 @@
---
title: "Paragraph.HitTestLine"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.HitTestLine Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Hit test a line in this paragraph</p>
<pre class="language-csharp"><code class="language-csharp">public abstract Topten.RichTextKit.HitTestResult HitTestLine(int lineIndex, float x);</code></pre>
<h2 id="remarks">Remarks</h2><p>The number of lines can be determined from LineIndicies.Count.</p>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a> lineIndex
</td>
<td><p>The line number to be tested</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> x
</td>
<td><p>The x-coordinate relative to left of the paragraph content</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.HitTestResult">Topten.RichTextKit.HitTestResult</a></td>
<td><p>A HitTestResult</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,48 @@
---
title: "Paragraph.Layout"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.Layout Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Layout the content of this paragraph</p>
<pre class="language-csharp"><code class="language-csharp">public abstract void Layout(TextDocument owner);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a> owner
</td>
<td><p>The TextDocument that owns this paragraph</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,40 @@
---
title: "Paragraph.Length"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.Length Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Gets the length of this paragraph in code points</p>
<pre class="language-csharp"><code class="language-csharp">public abstract int Length { get; }</code></pre>
<h2 id="remarks">Remarks</h2><p>All paragraphs must have a non-zero length and text paragraphs
should include the end of paragraph marker in the length.</p>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "Paragraph.LineIndicies"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.LineIndicies Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Retrieves a list of code point indicies of the start of each line</p>
<pre class="language-csharp"><code class="language-csharp">public abstract IReadOnlyList&lt;int&gt; LineIndicies { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Collections.Generic.IReadOnlyList-1">IReadOnlyList&lt;int&gt;</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "Paragraph.MarginBottom"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.MarginBottom Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>The bottom margin</p>
<pre class="language-csharp"><code class="language-csharp">public float MarginBottom { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "Paragraph.MarginLeft"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.MarginLeft Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>The left margin</p>
<pre class="language-csharp"><code class="language-csharp">public float MarginLeft { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "Paragraph.MarginRight"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.MarginRight Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>The right margin</p>
<pre class="language-csharp"><code class="language-csharp">public float MarginRight { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "Paragraph.MarginTop"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.MarginTop Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>The top margin</p>
<pre class="language-csharp"><code class="language-csharp">public float MarginTop { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,56 @@
---
title: "Paragraph.Paint"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.Paint Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Paint this paragraph</p>
<pre class="language-csharp"><code class="language-csharp">public abstract void Paint(SkiaSharp.SKCanvas canvas, Topten.RichTextKit.TextPaintOptions options);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
SkiaSharp.SKCanvas canvas
</td>
<td><p>The canvas to paint to</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.TextPaintOptions">Topten.RichTextKit.TextPaintOptions</a> options
</td>
<td><p>Paint options</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,39 @@
---
title: "Paragraph.TextBlock"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.TextBlock Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Gets the TextBlock associated with this paragraph</p>
<pre class="language-csharp"><code class="language-csharp">public virtual Topten.RichTextKit.TextBlock TextBlock { get; }</code></pre>
<h2 id="remarks">Remarks</h2><p>Non-text paragraphs should return null</p>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.TextBlock">Topten.RichTextKit.TextBlock</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "Paragraph.WordBoundaryIndicies"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Paragraph.WordBoundaryIndicies Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.Paragraph">Paragraph</a><br />
</small>
</p>
<p>Retrieves a list of all valid word boundary caret positions</p>
<pre class="language-csharp"><code class="language-csharp">public abstract IReadOnlyList&lt;int&gt; WordBoundaryIndicies { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Collections.Generic.IReadOnlyList-1">IReadOnlyList&lt;int&gt;</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,163 @@
---
title: "Topten.RichTextKit.Editor.Paragraph"
isMarkdown: false
import: "../.common.page"
---
<h1 id="definition" data-nav-secondary-text="Definition">Paragraph Class</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
</small>
</p>
<p>Abstract base class for all TextDocument paragraphs</p>
<pre class="language-csharp"><code class="language-csharp">public abstract class Paragraph :&#xA; Topten.RichTextKit.Utils.IRun</code></pre>
<h2 id="inherits">Inheritance</h2>
<p>
Paragraph
&rarr; <a href="https://docs.microsoft.com/dotnet/api/System.Object">object</a> </p>
<h2 id="interfaces">Interfaces</h2>
<p>
<a href="./../ref/Topten.RichTextKit.Utils.IRun">Topten.RichTextKit.Utils.IRun</a> </p>
<h2 id="constructors">Constructors</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph..ctor">Paragraph()</a></td>
<td><p>Constructs a new Paragraph</p>
</td>
</tr>
</table>
<h2 id="properties">Properties</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.CaretIndicies">CaretIndicies</a></td>
<td><p>Retrieves a list of all valid caret positions</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.CodePointIndex">CodePointIndex</a></td>
<td><p>This code point index of this paragraph relative to the start
of the document.</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.ContentHeight">ContentHeight</a></td>
<td><p>Qureries the height of this paragraph, excluding margins</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.ContentWidth">ContentWidth</a></td>
<td><p>Queries the width of this paragraph, excluding margins</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.ContentXCoord">ContentXCoord</a></td>
<td><p>The X-coordinate of this paragraph's content (ie: after applying margin)</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.ContentYCoord">ContentYCoord</a></td>
<td><p>The Y-coordinate of this paragraph's content (ie: after applying margin)</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.Length">Length</a></td>
<td><p>Gets the length of this paragraph in code points</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.LineIndicies">LineIndicies</a></td>
<td><p>Retrieves a list of code point indicies of the start of each line</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.MarginBottom">MarginBottom</a></td>
<td><p>The bottom margin</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.MarginLeft">MarginLeft</a></td>
<td><p>The left margin</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.MarginRight">MarginRight</a></td>
<td><p>The right margin</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.MarginTop">MarginTop</a></td>
<td><p>The top margin</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.TextBlock">TextBlock</a></td>
<td><p>Gets the TextBlock associated with this paragraph</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.WordBoundaryIndicies">WordBoundaryIndicies</a></td>
<td><p>Retrieves a list of all valid word boundary caret positions</p>
</td>
</tr>
</table>
<h2 id="methods">Methods</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.CopyStyleFrom">CopyStyleFrom(Paragraph)</a></td>
<td><p>Copy all style attributes from this paragraph to another</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.GetCaretInfo">GetCaretInfo(Topten.RichTextKit.CaretPosition)</a></td>
<td><p>Get caret position information</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.HitTest">HitTest(float, float)</a></td>
<td><p>Hit test this paragraph</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.HitTestLine">HitTestLine(int, float)</a></td>
<td><p>Hit test a line in this paragraph</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.Layout">Layout(TextDocument)</a></td>
<td><p>Layout the content of this paragraph</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph.Paint">Paint(SkiaSharp.SKCanvas, Topten.RichTextKit.TextPaintOptions)</a></td>
<td><p>Paint this paragraph</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,74 @@
---
title: "Topten.RichTextKit.Editor.SelectionKind"
isMarkdown: false
import: "../.common.page"
---
<h1 id="definition" data-nav-secondary-text="Definition">SelectionKind Enum</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
</small>
</p>
<p>Defines a kind of selection range</p>
<pre class="language-csharp"><code class="language-csharp">public enum SelectionKind</code></pre>
<h2 id="members">Members</h2>
<table class="name-value-description">
<tr>
<td>Document</td>
<td>4</td>
<td><p>Select the entire document (ie: select all)</p>
</td>
</tr>
<tr>
<td>Line</td>
<td>2</td>
<td><p>Select a line</p>
</td>
</tr>
<tr>
<td>None</td>
<td>0</td>
<td><p>No range</p>
</td>
</tr>
<tr>
<td>Paragraph</td>
<td>3</td>
<td><p>Select a paragraph</p>
</td>
</tr>
<tr>
<td>Word</td>
<td>1</td>
<td><p>Select a word</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument..ctor"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument Constructor</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Constructs a new TextDocument</p>
<pre class="language-csharp"><code class="language-csharp">public TextDocument();</code></pre>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.DefaultStyle"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.DefaultStyle Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Specifies the style to be used in plain text mode</p>
<pre class="language-csharp"><code class="language-csharp">public Topten.RichTextKit.IStyle DefaultStyle { get; set; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.IStyle">Topten.RichTextKit.IStyle</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,48 @@
---
title: "TextDocument.FinishImeComposition"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.FinishImeComposition Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Complete an IME composition</p>
<pre class="language-csharp"><code class="language-csharp">public void FinishImeComposition(ITextDocumentView view);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The initiating view</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,55 @@
---
title: "TextDocument.GetCaretInfo"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.GetCaretInfo Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Calculates useful information for displaying a caret</p>
<pre class="language-csharp"><code class="language-csharp">public Topten.RichTextKit.CaretInfo GetCaretInfo(Topten.RichTextKit.CaretPosition position);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.CaretPosition">Topten.RichTextKit.CaretPosition</a> position
</td>
<td><p>The caret position</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.CaretInfo">Topten.RichTextKit.CaretInfo</a></td>
<td><p>A CaretInfo struct, or CaretInfo.None</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,56 @@
---
title: "TextDocument.GetOvertypeRange"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.GetOvertypeRange Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Gets the range of text that will be overwritten by overtype mode
at a particular location in the document</p>
<pre class="language-csharp"><code class="language-csharp">public Topten.RichTextKit.TextRange GetOvertypeRange(Topten.RichTextKit.TextRange range);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.TextRange">Topten.RichTextKit.TextRange</a> range
</td>
<td><p>The current selection range</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.TextRange">Topten.RichTextKit.TextRange</a></td>
<td><p>The range that will be replaced by overtyping</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,63 @@
---
title: "TextDocument.GetSelectionRange"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.GetSelectionRange Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Given a caret position, find an enclosing selection range for the
current word, line, paragraph or document</p>
<pre class="language-csharp"><code class="language-csharp">public Topten.RichTextKit.TextRange GetSelectionRange(Topten.RichTextKit.CaretPosition position, SelectionKind kind);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.CaretPosition">Topten.RichTextKit.CaretPosition</a> position
</td>
<td><p>The caret position to select from</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.SelectionKind">SelectionKind</a> kind
</td>
<td><p>The kind of selection to return</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.TextRange">Topten.RichTextKit.TextRange</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,55 @@
---
title: "TextDocument.GetStyleAtOffset"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.GetStyleAtOffset Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Get the style of the text at a specified code point index</p>
<pre class="language-csharp"><code class="language-csharp">public Topten.RichTextKit.IStyle GetStyleAtOffset(int offset);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a> offset
</td>
<td><p>The offset of the code point</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.IStyle">Topten.RichTextKit.IStyle</a></td>
<td><p>An IStyle</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,55 @@
---
title: "TextDocument.GetText"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.GetText Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Get the text for a part of the document</p>
<pre class="language-csharp"><code class="language-csharp">public Topten.RichTextKit.Utils.Utf32Buffer GetText(Topten.RichTextKit.TextRange range);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.TextRange">Topten.RichTextKit.TextRange</a> range
</td>
<td><p>The text to retrieve</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Utils.Utf32Buffer">Topten.RichTextKit.Utils.Utf32Buffer</a></td>
<td><p>The text as a Utf32Buffer</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,63 @@
---
title: "TextDocument.HitTest"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.HitTest Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Hit test this string</p>
<pre class="language-csharp"><code class="language-csharp">public Topten.RichTextKit.HitTestResult HitTest(float x, float y);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> x
</td>
<td><p>The x-coordinate relative to top-left of the document</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> y
</td>
<td><p>The y-coordinate relative to top-left of the document</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.HitTestResult">Topten.RichTextKit.HitTestResult</a></td>
<td><p>A HitTestResult</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.ImeCompositionOffset"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.ImeCompositionOffset Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Get the code point offset position of the current IME composition</p>
<pre class="language-csharp"><code class="language-csharp">public int ImeCompositionOffset { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.IsImeComposing"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.IsImeComposing Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Indicates if an IME composition is currently in progress</p>
<pre class="language-csharp"><code class="language-csharp">public bool IsImeComposing { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Boolean">bool</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.Length"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.Length Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Gets the total length of the document in code points</p>
<pre class="language-csharp"><code class="language-csharp">public int Length { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.LineWrap"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.LineWrap Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Indicates if text should be wrapped</p>
<pre class="language-csharp"><code class="language-csharp">public bool LineWrap { get; set; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Boolean">bool</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.MarginBottom"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.MarginBottom Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>The document's bottom margin</p>
<pre class="language-csharp"><code class="language-csharp">public float MarginBottom { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.MarginLeft"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.MarginLeft Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>The document's left margin</p>
<pre class="language-csharp"><code class="language-csharp">public float MarginLeft { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.MarginRight"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.MarginRight Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>The document's right margin</p>
<pre class="language-csharp"><code class="language-csharp">public float MarginRight { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.MarginTop"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.MarginTop Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>The document's top margin</p>
<pre class="language-csharp"><code class="language-csharp">public float MarginTop { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.MeasuredHeight"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.MeasuredHeight Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>The total height of the document</p>
<pre class="language-csharp"><code class="language-csharp">public float MeasuredHeight { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,40 @@
---
title: "TextDocument.MeasuredWidth"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.MeasuredWidth Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>The total width of the document</p>
<pre class="language-csharp"><code class="language-csharp">public float MeasuredWidth { get; }</code></pre>
<h2 id="remarks">Remarks</h2><p>For line-wrap documents this is the page width.
For non-line-wrap documents this is the width of the widest paragraph.</p>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,79 @@
---
title: "TextDocument.Navigate"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.Navigate Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Handles keyboard navigation events</p>
<pre class="language-csharp"><code class="language-csharp">public Topten.RichTextKit.CaretPosition Navigate(Topten.RichTextKit.CaretPosition position, NavigationKind kind, float pageSize, ref Nullable&lt;float&gt; ghostXCoord);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.CaretPosition">Topten.RichTextKit.CaretPosition</a> position
</td>
<td><p>The current caret position</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.NavigationKind">NavigationKind</a> kind
</td>
<td><p>The direction and type of caret movement</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> pageSize
</td>
<td><p>Specifies the page size for page up/down navigation</p>
</td>
</tr>
<tr>
<td>
ref
<a href="https://docs.microsoft.com/dotnet/api/System.Nullable-1">Nullable&lt;float&gt;</a> ghostXCoord
</td>
<td><p>Transient storage for XCoord of caret during vertical navigation</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.CaretPosition">Topten.RichTextKit.CaretPosition</a></td>
<td><p>The new caret position</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,39 @@
---
title: "TextDocument.PageWidth"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.PageWidth Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Specifies the page width of the document</p>
<pre class="language-csharp"><code class="language-csharp">public float PageWidth { get; set; }</code></pre>
<h2 id="remarks">Remarks</h2><p>This value is ignored for single line editor</p>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,72 @@
---
title: "TextDocument.Paint"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.Paint Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Paint this text block</p>
<pre class="language-csharp"><code class="language-csharp">public void Paint(SkiaSharp.SKCanvas canvas, float fromYCoord, float toYCoord, Topten.RichTextKit.TextPaintOptions options = null);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
SkiaSharp.SKCanvas canvas
</td>
<td><p>The Skia canvas to paint to</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> fromYCoord
</td>
<td><p>The top Y-Coord of the visible part of the document</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> toYCoord
</td>
<td><p>The bottom Y-Coord of the visible part of the document</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.TextPaintOptions">Topten.RichTextKit.TextPaintOptions</a> options
= null </td>
<td><p>Options controlling the paint operation</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.PlainTextMode"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.PlainTextMode Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Specifies if the document is in plain text mode</p>
<pre class="language-csharp"><code class="language-csharp">public bool PlainTextMode { get; set; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Boolean">bool</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,48 @@
---
title: "TextDocument.Redo"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.Redo Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Redo the undone edit operations</p>
<pre class="language-csharp"><code class="language-csharp">public void Redo(ITextDocumentView view);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The view initiating the redo command</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,48 @@
---
title: "TextDocument.RegisterView"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.RegisterView Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Registers a new view to receive notifications of changes to the document</p>
<pre class="language-csharp"><code class="language-csharp">public void RegisterView(ITextDocumentView view);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The view to be registered</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,132 @@
---
title: "TextDocument.ReplaceText"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.ReplaceText Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<h2 id="overloads">Overloads</h2>
<table class="name-description">
<tr>
<td><a href="#Topten.RichTextKit.Editor-TextDocument.ReplaceText-Topten.RichTextKit.Editor-ITextDocumentView-Topten.RichTextKit-TextRange-System-String-Topten.RichTextKit.Editor-EditSemantics">ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, string, EditSemantics)</a></td>
<td><p>Replaces a range of text with the specified text</p>
</td>
</tr>
<tr>
<td><a href="#Topten.RichTextKit.Editor-TextDocument.ReplaceText-Topten.RichTextKit.Editor-ITextDocumentView-Topten.RichTextKit-TextRange-Topten.RichTextKit.Utils-Slice-System-Int32--Topten.RichTextKit.Editor-EditSemantics">ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, Topten.RichTextKit.Utils.Slice&lt;int&gt;, EditSemantics)</a></td>
<td><p>Replaces a range of text with the specified text</p>
</td>
</tr>
</table>
<h2 id="Topten.RichTextKit.Editor-TextDocument.ReplaceText-Topten.RichTextKit.Editor-ITextDocumentView-Topten.RichTextKit-TextRange-System-String-Topten.RichTextKit.Editor-EditSemantics">ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, string, EditSemantics)</h2>
<p>Replaces a range of text with the specified text</p>
<pre class="language-csharp"><code class="language-csharp">public void ReplaceText(ITextDocumentView view, Topten.RichTextKit.TextRange range, string text, EditSemantics semantics);</code></pre>
<h3>Parameters</h3> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The view initiating the operation</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.TextRange">Topten.RichTextKit.TextRange</a> range
</td>
<td><p>The range to be replaced</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.String">string</a> text
</td>
<td><p>The text to replace with</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.EditSemantics">EditSemantics</a> semantics
</td>
<td><p>Controls how undo operations are coalesced and view selections updated</p>
</td>
</tr>
</table>
<h2 id="Topten.RichTextKit.Editor-TextDocument.ReplaceText-Topten.RichTextKit.Editor-ITextDocumentView-Topten.RichTextKit-TextRange-Topten.RichTextKit.Utils-Slice-System-Int32--Topten.RichTextKit.Editor-EditSemantics">ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, Topten.RichTextKit.Utils.Slice&lt;int&gt;, EditSemantics)</h2>
<p>Replaces a range of text with the specified text</p>
<pre class="language-csharp"><code class="language-csharp">public void ReplaceText(ITextDocumentView view, Topten.RichTextKit.TextRange range, Topten.RichTextKit.Utils.Slice&lt;int&gt; codePoints, EditSemantics semantics);</code></pre>
<h3>Parameters</h3> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The view initiating the operation</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.TextRange">Topten.RichTextKit.TextRange</a> range
</td>
<td><p>The range to be replaced</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Utils.Slice[T]">Topten.RichTextKit.Utils.Slice&lt;int&gt;</a> codePoints
</td>
<td><p>The text to replace with</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.EditSemantics">EditSemantics</a> semantics
</td>
<td><p>Controls how undo operations are coalesced and view selections updated</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,48 @@
---
title: "TextDocument.RevokeView"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.RevokeView Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Revokes a previously registered view</p>
<pre class="language-csharp"><code class="language-csharp">public void RevokeView(ITextDocumentView view);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The view to revoke</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,73 @@
---
title: "TextDocument.SetMargins"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.SetMargins Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Set the document margins</p>
<pre class="language-csharp"><code class="language-csharp">public void SetMargins(float left, float top, float right, float bottom);</code></pre>
<h2 id="remarks">Remarks</h2><p>This operation resets the undo manager</p>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> left
</td>
<td><p>The left margin</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> top
</td>
<td><p>The top margin</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> right
</td>
<td><p>The right margin</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Single">float</a> bottom
</td>
<td><p>The bottom margin</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.SingleLineMode"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.SingleLineMode Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Specifies if the document is in single line mode</p>
<pre class="language-csharp"><code class="language-csharp">public bool SingleLineMode { get; set; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Boolean">bool</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,56 @@
---
title: "TextDocument.StartImeComposition"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.StartImeComposition Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Starts and IME composition action</p>
<pre class="language-csharp"><code class="language-csharp">public void StartImeComposition(ITextDocumentView view, Topten.RichTextKit.TextRange initialSelection);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The initiating view</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.TextRange">Topten.RichTextKit.TextRange</a> initialSelection
</td>
<td><p>The initial text selection</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.Text"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.Text Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Get/set the entire document text</p>
<pre class="language-csharp"><code class="language-csharp">public string Text { get; set; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.String">string</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,48 @@
---
title: "TextDocument.Undo"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.Undo Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Undo the last editor operation</p>
<pre class="language-csharp"><code class="language-csharp">public void Undo(ITextDocumentView view);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The view initiating the undo command</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "TextDocument.UndoManager"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.UndoManager Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Get the undo manager for this document</p>
<pre class="language-csharp"><code class="language-csharp">public Topten.RichTextKit.Utils.UndoManager&lt;TextDocument&gt; UndoManager { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Utils.UndoManager[T]">Topten.RichTextKit.Utils.UndoManager&lt;TextDocument&gt;</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,64 @@
---
title: "TextDocument.UpdateImeComposition"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">TextDocument.UpdateImeComposition Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Editor.TextDocument">TextDocument</a><br />
</small>
</p>
<p>Update a pending IME composition</p>
<pre class="language-csharp"><code class="language-csharp">public void UpdateImeComposition(ITextDocumentView view, Topten.RichTextKit.StyledText text, int caretOffset);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView">ITextDocumentView</a> view
</td>
<td><p>The initiating view</p>
</td>
</tr>
<tr>
<td>
<a href="./../ref/Topten.RichTextKit.StyledText">Topten.RichTextKit.StyledText</a> text
</td>
<td><p>The composition text</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a> caretOffset
</td>
<td><p>The caret offset relative to the composition text</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,231 @@
---
title: "Topten.RichTextKit.Editor.TextDocument"
isMarkdown: false
import: "../.common.page"
---
<h1 id="definition" data-nav-secondary-text="Definition">TextDocument Class</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit.Editor">Topten.RichTextKit.Editor</a><br />
</small>
</p>
<p>Represents a the document part of a Document/View editor</p>
<pre class="language-csharp"><code class="language-csharp">public class TextDocument</code></pre>
<h2 id="inherits">Inheritance</h2>
<p>
TextDocument
&rarr; <a href="https://docs.microsoft.com/dotnet/api/System.Object">object</a> </p>
<h2 id="constructors">Constructors</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument..ctor">TextDocument()</a></td>
<td><p>Constructs a new TextDocument</p>
</td>
</tr>
</table>
<h2 id="properties">Properties</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.DefaultStyle">DefaultStyle</a></td>
<td><p>Specifies the style to be used in plain text mode</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.ImeCompositionOffset">ImeCompositionOffset</a></td>
<td><p>Get the code point offset position of the current IME composition</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.IsImeComposing">IsImeComposing</a></td>
<td><p>Indicates if an IME composition is currently in progress</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.Length">Length</a></td>
<td><p>Gets the total length of the document in code points</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.LineWrap">LineWrap</a></td>
<td><p>Indicates if text should be wrapped</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.MarginBottom">MarginBottom</a></td>
<td><p>The document's bottom margin</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.MarginLeft">MarginLeft</a></td>
<td><p>The document's left margin</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.MarginRight">MarginRight</a></td>
<td><p>The document's right margin</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.MarginTop">MarginTop</a></td>
<td><p>The document's top margin</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.MeasuredHeight">MeasuredHeight</a></td>
<td><p>The total height of the document</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.MeasuredWidth">MeasuredWidth</a></td>
<td><p>The total width of the document</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.PageWidth">PageWidth</a></td>
<td><p>Specifies the page width of the document</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.PlainTextMode">PlainTextMode</a></td>
<td><p>Specifies if the document is in plain text mode</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.SingleLineMode">SingleLineMode</a></td>
<td><p>Specifies if the document is in single line mode</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.Text">Text</a></td>
<td><p>Get/set the entire document text</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.UndoManager">UndoManager</a></td>
<td><p>Get the undo manager for this document</p>
</td>
</tr>
</table>
<h2 id="methods">Methods</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.FinishImeComposition">FinishImeComposition(ITextDocumentView)</a></td>
<td><p>Complete an IME composition</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.GetCaretInfo">GetCaretInfo(Topten.RichTextKit.CaretPosition)</a></td>
<td><p>Calculates useful information for displaying a caret</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.GetOvertypeRange">GetOvertypeRange(Topten.RichTextKit.TextRange)</a></td>
<td><p>Gets the range of text that will be overwritten by overtype mode
at a particular location in the document</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.GetSelectionRange">GetSelectionRange(Topten.RichTextKit.CaretPosition, SelectionKind)</a></td>
<td><p>Given a caret position, find an enclosing selection range for the
current word, line, paragraph or document</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.GetStyleAtOffset">GetStyleAtOffset(int)</a></td>
<td><p>Get the style of the text at a specified code point index</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.GetText">GetText(Topten.RichTextKit.TextRange)</a></td>
<td><p>Get the text for a part of the document</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.HitTest">HitTest(float, float)</a></td>
<td><p>Hit test this string</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.Navigate">Navigate(Topten.RichTextKit.CaretPosition, NavigationKind, float, ref Nullable&lt;float&gt;)</a></td>
<td><p>Handles keyboard navigation events</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.Paint">Paint(SkiaSharp.SKCanvas, float, float, Topten.RichTextKit.TextPaintOptions)</a></td>
<td><p>Paint this text block</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.Redo">Redo(ITextDocumentView)</a></td>
<td><p>Redo the undone edit operations</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.RegisterView">RegisterView(ITextDocumentView)</a></td>
<td><p>Registers a new view to receive notifications of changes to the document</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.ReplaceText#Topten.RichTextKit.Editor-TextDocument.ReplaceText-Topten.RichTextKit.Editor-ITextDocumentView-Topten.RichTextKit-TextRange-System-String-Topten.RichTextKit.Editor-EditSemantics">ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, string, EditSemantics)</a></td>
<td><p>Replaces a range of text with the specified text</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.ReplaceText#Topten.RichTextKit.Editor-TextDocument.ReplaceText-Topten.RichTextKit.Editor-ITextDocumentView-Topten.RichTextKit-TextRange-Topten.RichTextKit.Utils-Slice-System-Int32--Topten.RichTextKit.Editor-EditSemantics">ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, Topten.RichTextKit.Utils.Slice&lt;int&gt;, EditSemantics)</a></td>
<td><p>Replaces a range of text with the specified text</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.RevokeView">RevokeView(ITextDocumentView)</a></td>
<td><p>Revokes a previously registered view</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.SetMargins">SetMargins(float, float, float, float)</a></td>
<td><p>Set the document margins</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.StartImeComposition">StartImeComposition(ITextDocumentView, Topten.RichTextKit.TextRange)</a></td>
<td><p>Starts and IME composition action</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.Undo">Undo(ITextDocumentView)</a></td>
<td><p>Undo the last editor operation</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument.UpdateImeComposition">UpdateImeComposition(ITextDocumentView, Topten.RichTextKit.StyledText, int)</a></td>
<td><p>Update a pending IME composition</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,61 @@
---
title: "Topten.RichTextKit.Editor"
isMarkdown: false
import: "../.common.page"
---
<h1>Topten.RichTextKit.Editor Namespace</h1>
<h2 id="classes">Classes</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.Paragraph"> Paragraph</a></td>
<td><p>Abstract base class for all TextDocument paragraphs</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.TextDocument"> TextDocument</a></td>
<td><p>Represents a the document part of a Document/View editor</p>
</td>
</tr>
</table>
<h2 id="interfaces">Interfaces</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.ITextDocumentView"> ITextDocumentView</a></td>
<td><p>Interface implemented by views of a TextDocument</p>
</td>
</tr>
</table>
<h2 id="structs">Structs</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.DocumentChangeInfo"> DocumentChangeInfo</a></td>
<td><p>Provides information about the range of changes to a document</p>
</td>
</tr>
</table>
<h2 id="enums">Enums</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.EditSemantics"> EditSemantics</a></td>
<td><p>Defines various semantics for TextDocument edit operations</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.NavigationKind"> NavigationKind</a></td>
<td><p>Defines a kind of keyboard navigation</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Editor.SelectionKind"> SelectionKind</a></td>
<td><p>Defines a kind of selection range</p>
</td>
</tr>
</table>

Просмотреть файл

@ -26,7 +26,7 @@ import: "../.common.page"
<p>Splits a sequence of code points into a series of runs with font fallback applied</p>
<pre class="language-csharp"><code class="language-csharp">[Runtime.CompilerServices.IteratorStateMachine(Topten.RichTextKit.FontFallback&#x2B;&lt;GetFontRuns&gt;d__2)]&#xD;&#xA;public static IEnumerable&lt;Run&gt; GetFontRuns(Utils.Slice&lt;int&gt; codePoints, SkiaSharp.SKTypeface typeface);</code></pre>
<pre class="language-csharp"><code class="language-csharp">[Runtime.CompilerServices.IteratorStateMachine(Topten.RichTextKit.FontFallback&#x2B;&lt;GetFontRuns&gt;d__2)]&#xD;&#xA;public static IEnumerable&lt;Run&gt; GetFontRuns(Utils.Slice&lt;int&gt; codePoints, SkiaSharp.SKTypeface typeface, char replacementCharacter = &#x0;);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
@ -44,6 +44,14 @@ import: "../.common.page"
SkiaSharp.SKTypeface typeface
</td>
<td><p>The preferred typeface</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Char">char</a> replacementCharacter
= &#x0; </td>
<td><p>The replacement character to be used for the run</p>
</td>
</tr>
</table>

Просмотреть файл

@ -54,7 +54,7 @@ fallback font.</p>
<h2 id="methods">Methods</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.FontFallback.GetFontRuns">GetFontRuns(Utils.Slice&lt;int&gt;, SkiaSharp.SKTypeface)</a></td>
<td><a href="./../ref/Topten.RichTextKit.FontFallback.GetFontRuns">GetFontRuns(Utils.Slice&lt;int&gt;, SkiaSharp.SKTypeface, char)</a></td>
<td><p>Splits a sequence of code points into a series of runs with font fallback applied</p>
</td>
</tr>

Просмотреть файл

@ -0,0 +1,41 @@
---
title: "HitTestResult.AltCaretPosition"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">HitTestResult.AltCaretPosition Field</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.HitTestResult">HitTestResult</a><br />
</small>
</p>
<p>Indicates that the point is closest to the alternate caret position
of ClosestCodePointIndex.</p>
<pre class="language-csharp"><code class="language-csharp">public bool AltCaretPosition;</code></pre>
<h2 id="remarks">Remarks</h2><p>This property indicates if the tested point is beyond the end of
a word wrapped line and not at the start of the following line.</p>
<h2 id="field-type">Field Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Boolean">bool</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "HitTestResult.CaretPosition"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">HitTestResult.CaretPosition Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.HitTestResult">HitTestResult</a><br />
</small>
</p>
<p>Helper to get the closest position as a CaretPosition</p>
<pre class="language-csharp"><code class="language-csharp">public CaretPosition CaretPosition { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.CaretPosition">CaretPosition</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -35,6 +35,12 @@ import: "../.common.page"
<h2 id="fields">Fields</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.HitTestResult.AltCaretPosition">AltCaretPosition</a></td>
<td><p>Indicates that the point is closest to the alternate caret position
of ClosestCodePointIndex.</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.HitTestResult.ClosestCodePointIndex">ClosestCodePointIndex</a></td>
<td><p>The code point index of the first code point in the cluster that the
@ -68,6 +74,11 @@ last line.</p>
<h2 id="properties">Properties</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.HitTestResult.CaretPosition">CaretPosition</a></td>
<td><p>Helper to get the closest position as a CaretPosition</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.HitTestResult.IsNone">IsNone</a></td>
<td><p>Check is this is the &quot;none&quot; hit test result</p>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "IStyle.ReplacementCharacter"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">IStyle.ReplacementCharacter Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.IStyle">IStyle</a><br />
</small>
</p>
<p>Specifies a replacement character to be displayed (password mode)</p>
<pre class="language-csharp"><code class="language-csharp">public char ReplacementCharacter { get; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Char">char</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -68,6 +68,11 @@ font; otherwise False.</p>
<tr>
<td><a href="./../ref/Topten.RichTextKit.IStyle.LineHeight">LineHeight</a></td>
<td><p>The line height for text in this run as a multiplier (defaults to 1)</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.IStyle.ReplacementCharacter">ReplacementCharacter</a></td>
<td><p>Specifies a replacement character to be displayed (password mode)</p>
</td>
</tr>
<tr>

Просмотреть файл

@ -26,23 +26,26 @@ import: "../.common.page"
<p>Calculates useful information for displaying a caret</p>
<pre class="language-csharp"><code class="language-csharp">public CaretInfo GetCaretInfo(int codePointIndex);</code></pre>
<pre class="language-csharp"><code class="language-csharp">public CaretInfo GetCaretInfo(CaretPosition position);</code></pre>
<h2 id="remarks">Remarks</h2><p>When altPosition is true, if the code point index indicates the first
code point after a line break, the returned caret position will be the
end of the previous line (instead of the start of the next line)</p>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Int32">int</a> codePointIndex
<a href="./../ref/Topten.RichTextKit.CaretPosition">CaretPosition</a> position
</td>
<td><p>The code point index of the caret</p>
<td><p>The caret position</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.CaretInfo">CaretInfo</a></td>
<td><p>A CaretInfo struct, or CaretInfo.None</p>
<td><p>A CaretInfo struct</p>
</td>
</tr>
</table>

Просмотреть файл

@ -180,7 +180,7 @@ constraints</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.RichString.GetCaretInfo">GetCaretInfo(int)</a></td>
<td><a href="./../ref/Topten.RichTextKit.RichString.GetCaretInfo">GetCaretInfo(CaretPosition)</a></td>
<td><p>Calculates useful information for displaying a caret</p>
</td>
</tr>

Просмотреть файл

@ -26,7 +26,7 @@ import: "../.common.page"
<p>Modifies this style with one or more attribute changes and returns a new style</p>
<pre class="language-csharp"><code class="language-csharp">public Style Modify(string fontFamily = null, Nullable&lt;float&gt; fontSize = null, Nullable&lt;int&gt; fontWeight = null, Nullable&lt;bool&gt; fontItalic = null, Nullable&lt;UnderlineStyle&gt; underline = null, Nullable&lt;StrikeThroughStyle&gt; strikeThrough = null, Nullable&lt;float&gt; lineHeight = null, Nullable&lt;SkiaSharp.SKColor&gt; textColor = null, Nullable&lt;float&gt; letterSpacing = null, Nullable&lt;FontVariant&gt; fontVariant = null, Nullable&lt;TextDirection&gt; textDirection = null);</code></pre>
<pre class="language-csharp"><code class="language-csharp">public Style Modify(string fontFamily = null, Nullable&lt;float&gt; fontSize = null, Nullable&lt;int&gt; fontWeight = null, Nullable&lt;bool&gt; fontItalic = null, Nullable&lt;UnderlineStyle&gt; underline = null, Nullable&lt;StrikeThroughStyle&gt; strikeThrough = null, Nullable&lt;float&gt; lineHeight = null, Nullable&lt;SkiaSharp.SKColor&gt; textColor = null, Nullable&lt;float&gt; letterSpacing = null, Nullable&lt;FontVariant&gt; fontVariant = null, Nullable&lt;TextDirection&gt; textDirection = null, Nullable&lt;char&gt; replacementCharacter = null);</code></pre>
<h2 id="remarks">Remarks</h2><p>Note this method always creates a new style instance.To avoid creating excessive
style instances, consider using the StyleManager which caches instances of styles
@ -119,6 +119,14 @@ with the same attributes</p>
<a href="https://docs.microsoft.com/dotnet/api/System.Nullable-1">Nullable&lt;TextDirection&gt;</a> textDirection
= null </td>
<td><p>The new text direction</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Nullable-1">Nullable&lt;char&gt;</a> replacementCharacter
= null </td>
<td><p>The new replacement character</p>
</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "Style.ReplacementCharacter"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">Style.ReplacementCharacter Property</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.Style">Style</a><br />
</small>
</p>
<p>Specifies a replacement character to be displayed (password mode)</p>
<pre class="language-csharp"><code class="language-csharp">public char ReplacementCharacter { sealed get; set; }</code></pre>
<h2 id="property-type">Property Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Char">char</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -80,6 +80,11 @@ font; otherwise False (defaults to false).</p>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Style.LineHeight">LineHeight</a></td>
<td><p>The line height for text in this run as a multiplier (defaults to 1.0).</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.Style.ReplacementCharacter">ReplacementCharacter</a></td>
<td><p>Specifies a replacement character to be displayed (password mode)</p>
</td>
</tr>
<tr>
@ -107,7 +112,7 @@ font; otherwise False (defaults to false).</p>
<h2 id="methods">Methods</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.Style.Modify">Modify(string, Nullable&lt;float&gt;, Nullable&lt;int&gt;, Nullable&lt;bool&gt;, Nullable&lt;UnderlineStyle&gt;, Nullable&lt;StrikeThroughStyle&gt;, Nullable&lt;float&gt;, Nullable&lt;SkiaSharp.SKColor&gt;, Nullable&lt;float&gt;, Nullable&lt;FontVariant&gt;, Nullable&lt;TextDirection&gt;)</a></td>
<td><a href="./../ref/Topten.RichTextKit.Style.Modify">Modify(string, Nullable&lt;float&gt;, Nullable&lt;int&gt;, Nullable&lt;bool&gt;, Nullable&lt;UnderlineStyle&gt;, Nullable&lt;StrikeThroughStyle&gt;, Nullable&lt;float&gt;, Nullable&lt;SkiaSharp.SKColor&gt;, Nullable&lt;float&gt;, Nullable&lt;FontVariant&gt;, Nullable&lt;TextDirection&gt;, Nullable&lt;char&gt;)</a></td>
<td><p>Modifies this style with one or more attribute changes and returns a new style</p>
</td>
</tr>

Просмотреть файл

@ -0,0 +1,38 @@
---
title: "StyleManager.Default"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">StyleManager.Default Field</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.StyleManager">StyleManager</a><br />
</small>
</p>
<p>A per-thread style manager</p>
<pre class="language-csharp"><code class="language-csharp">public static System.Threading.ThreadLocal&lt;StyleManager&gt; Default;</code></pre>
<h2 id="field-type">Field Type</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.Threading.ThreadLocal-1">System.Threading.ThreadLocal&lt;StyleManager&gt;</a></td>
<td></td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,55 @@
---
title: "StyleManager.ReplacementCharacter"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">StyleManager.ReplacementCharacter Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.StyleManager">StyleManager</a><br />
</small>
</p>
<p>Changes the text direction and returns an updated IStyle</p>
<pre class="language-csharp"><code class="language-csharp">public IStyle ReplacementCharacter(char character);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Char">char</a> character
</td>
<td><p>The new replacement character</p>
</td>
</tr>
</table>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.IStyle">IStyle</a></td>
<td><p>An IStyle for the new style</p>
</td>
</tr>
</table>

Просмотреть файл

@ -27,7 +27,7 @@ import: "../.common.page"
style.</p>
<pre class="language-csharp"><code class="language-csharp">public IStyle Update(string fontFamily = null, Nullable&lt;float&gt; fontSize = null, Nullable&lt;int&gt; fontWeight = null, Nullable&lt;bool&gt; fontItalic = null, Nullable&lt;UnderlineStyle&gt; underline = null, Nullable&lt;StrikeThroughStyle&gt; strikeThrough = null, Nullable&lt;float&gt; lineHeight = null, Nullable&lt;SkiaSharp.SKColor&gt; textColor = null, Nullable&lt;float&gt; letterSpacing = null, Nullable&lt;FontVariant&gt; fontVariant = null, Nullable&lt;TextDirection&gt; textDirection = null);</code></pre>
<pre class="language-csharp"><code class="language-csharp">public IStyle Update(string fontFamily = null, Nullable&lt;float&gt; fontSize = null, Nullable&lt;int&gt; fontWeight = null, Nullable&lt;bool&gt; fontItalic = null, Nullable&lt;UnderlineStyle&gt; underline = null, Nullable&lt;StrikeThroughStyle&gt; strikeThrough = null, Nullable&lt;float&gt; lineHeight = null, Nullable&lt;SkiaSharp.SKColor&gt; textColor = null, Nullable&lt;float&gt; letterSpacing = null, Nullable&lt;FontVariant&gt; fontVariant = null, Nullable&lt;TextDirection&gt; textDirection = null, Nullable&lt;char&gt; replacementCharacter = null);</code></pre>
<h2 id="parameters">Parameters</h2> <table class="name-description">
@ -117,6 +117,14 @@ style.</p>
<a href="https://docs.microsoft.com/dotnet/api/System.Nullable-1">Nullable&lt;TextDirection&gt;</a> textDirection
= null </td>
<td><p>The new text direction</p>
</td>
</tr>
<tr>
<td>
<a href="https://docs.microsoft.com/dotnet/api/System.Nullable-1">Nullable&lt;char&gt;</a> replacementCharacter
= null </td>
<td><p>The new replacement character</p>
</td>
</tr>
</table>

Просмотреть файл

@ -46,6 +46,14 @@ a particular style and then popping back to the previous style.</p>
<h2 id="fields">Fields</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.StyleManager.Default">Default</a></td>
<td><p>A per-thread style manager</p>
</td>
</tr>
</table>
<h2 id="properties">Properties</h2>
<table class="name-description">
@ -116,6 +124,11 @@ a particular style and then popping back to the previous style.</p>
<tr>
<td><a href="./../ref/Topten.RichTextKit.StyleManager.Push">Push()</a></td>
<td><p>Saves the current state on an internal stack</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.StyleManager.ReplacementCharacter">ReplacementCharacter(char)</a></td>
<td><p>Changes the text direction and returns an updated IStyle</p>
</td>
</tr>
<tr>
@ -145,7 +158,7 @@ Push/Pop style stack to empty.</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.StyleManager.Update">Update(string, Nullable&lt;float&gt;, Nullable&lt;int&gt;, Nullable&lt;bool&gt;, Nullable&lt;UnderlineStyle&gt;, Nullable&lt;StrikeThroughStyle&gt;, Nullable&lt;float&gt;, Nullable&lt;SkiaSharp.SKColor&gt;, Nullable&lt;float&gt;, Nullable&lt;FontVariant&gt;, Nullable&lt;TextDirection&gt;)</a></td>
<td><a href="./../ref/Topten.RichTextKit.StyleManager.Update">Update(string, Nullable&lt;float&gt;, Nullable&lt;int&gt;, Nullable&lt;bool&gt;, Nullable&lt;UnderlineStyle&gt;, Nullable&lt;StrikeThroughStyle&gt;, Nullable&lt;float&gt;, Nullable&lt;SkiaSharp.SKColor&gt;, Nullable&lt;float&gt;, Nullable&lt;FontVariant&gt;, Nullable&lt;TextDirection&gt;, Nullable&lt;char&gt;)</a></td>
<td><p>Update the current style by applying one or more changes to the current
style.</p>
</td>

Просмотреть файл

@ -0,0 +1,45 @@
---
title: "StyleRun.ToString"
isMarkdown: false
import: "../.common.page"
---
<h1 data-nav-secondary-text="Definition" id="definition">StyleRun.ToString Method</h1>
<p>
<small>
Assembly: Topten.RichTextKit.dll<br />
Namespace: <a href="./../ref/Topten.RichTextKit">Topten.RichTextKit</a><br />
Declaring Type: <a href="./../ref/Topten.RichTextKit.StyleRun">StyleRun</a><br />
</small>
</p>
<p>Get the text of this style run</p>
<pre class="language-csharp"><code class="language-csharp">public override string ToString();</code></pre>
<h2 id="returns">Returns</h2> <table class="name-description">
<tr>
<td><a href="https://docs.microsoft.com/dotnet/api/System.String">string</a></td>
<td><p>A string</p>
</td>
</tr>
</table>

Просмотреть файл

@ -19,13 +19,16 @@ import: "../.common.page"
style.</p>
<pre class="language-csharp"><code class="language-csharp">public class StyleRun</code></pre>
<pre class="language-csharp"><code class="language-csharp">public class StyleRun :&#xA; Utils.IRun</code></pre>
<h2 id="inherits">Inheritance</h2>
<p>
StyleRun
&rarr; <a href="https://docs.microsoft.com/dotnet/api/System.Object">object</a> </p>
<h2 id="interfaces">Interfaces</h2>
<p>
<a href="./../ref/Topten.RichTextKit.Utils.IRun">Utils.IRun</a> </p>
@ -67,11 +70,6 @@ as a whole).</p>
<tr>
<td><a href="./../ref/Topten.RichTextKit.StyleRun.Style">Style</a></td>
<td><p>The style attributes to be applied to text in this run.</p>
</td>
</tr>
<tr>
<td><a href="./../ref/Topten.RichTextKit.StyleRun.TextBlock">TextBlock</a></td>
<td><p>Gets the text block that owns this run.</p>
</td>
</tr>
</table>
@ -80,6 +78,14 @@ as a whole).</p>
<h2 id="nested-types">Overridden &amp Inherited</h2>
<table class="name-description">
<tr>
<td><a href="./../ref/Topten.RichTextKit.StyleRun.ToString">ToString()</a></td>
<td><p>Get the text of this style run</p>
</td>
</tr>
</table>

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше