From 30819c2d4a8e55fa08dbe5df92186cab56d5a6ed Mon Sep 17 00:00:00 2001
From: Brad Robinson
-
- Assembly: Topten.RichTextKit.dll Returns the maximum possible overhang based on the fonts used in this text block Some font's can overhang the left and right margins. eg: a lowercase 'j' at
-the start of a line will often overhang to the left of the left margin. This property returns the maximum overhang in each direction based on the fonts
-used, but not the actual text or final layout. This can be useful to get a
-consistent maximum possible overhang, although the returned value is often
-excessive (depending on the font). Currently only the left overhang is calculated. The return rectangle describes overhang amounts for each edge - not rectangle
-co-ordinates.Going Deeper
diff --git a/doc/ref/Topten.RichTextKit.TextBlock.MaxOverhang.page b/doc/ref/Topten.RichTextKit.TextBlock.MaxOverhang.page
deleted file mode 100644
index 411022e..0000000
--- a/doc/ref/Topten.RichTextKit.TextBlock.MaxOverhang.page
+++ /dev/null
@@ -1,47 +0,0 @@
----
-title: "TextBlock.MaxOverhang"
-isMarkdown: false
-import: "../.common.page"
----
-
-TextBlock.MaxOverhang Property
-
-
-
- Namespace: Topten.RichTextKit
-
- Declaring Type: TextBlock
-
-
-
-public SkiaSharp.SKRect MaxOverhang { get; }
Remarks
Property Type
-
-
-
-
-
-
diff --git a/doc/ref/Topten.RichTextKit.TextBlock.MeasuredOverhang.page b/doc/ref/Topten.RichTextKit.TextBlock.MeasuredOverhang.page
index 00a27f3..f7a4111 100644
--- a/doc/ref/Topten.RichTextKit.TextBlock.MeasuredOverhang.page
+++ b/doc/ref/Topten.RichTextKit.TextBlock.MeasuredOverhang.page
@@ -25,8 +25,7 @@ fonts used, and the supplied text.
-
- SkiaSharp.SKRect
-
-
public SkiaSharp.SKRect MeasuredOverhang { get; }
-Currently only the left overhang is calculated.
-The return rectangle describes overhang amounts for each edge - not +
The return rectangle describes overhang amounts for each edge - not rectangle co-ordinates.
The maximum number of lines after which lines will be
truncated and the final line will be appended with an
ellipsis ( |
-
- |||||||||||||||||||||||||||||||||||||||||||||
MaxOverhang | -Returns the maximum possible overhang based on the fonts used in this text block |
||||||||||||||||||||||||||||||||||||||||||||
+ + Slice<T> data + | +The data to be mapped + |
+
+ + Slice<int> mapping + | +The index map + |
+
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit.Utils
+
+ Declaring Type: MappedSlice<T>
+
+
Gets a reference to a mapped element
+ + +public ref T this[int index] { get; }
+
+
++ + int index + | +The mapped index to be retrieved + |
+
ref T | ++ |
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit.Utils
+
+ Declaring Type: MappedSlice<T>
+
+
Gets the number of elements in this mapping
+ + +public int Length { get; }
+
+
+int | ++ |
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit.Utils
+
+ Declaring Type: MappedSlice<T>
+
+
Get the index mapping for this mapped array
+ + +public Slice<int> Mapping { get; }
+
+
+Slice<int> | ++ |
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit.Utils
+
+ Declaring Type: MappedSlice<T>
+
+
Get the content of this mapped slice as an array
+ + +public T[] ToArray();
+
+
+T[] | +The content as an array + |
+
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit.Utils
+
+ Declaring Type: MappedSlice<T>
+
+
Get the underlying slice for this mapped array
+ + +public Slice<T> Underlying { get; }
+
+
+Slice<T> | ++ |
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit.Utils
+
+
Provides a mapped view of an underlying slice array, selecting arbitrary indicies +from the source array
+ + +public struct MappedSlice<T>
+
+ + MappedSlice<T> + → ValueType → object
+ + + + +T | +The element type of the underlying array + |
+
MappedSlice(Slice<T>, Slice<int>) | +Constructs a new mapped array + |
+
Item[int] | +Gets a reference to a mapped element + |
+
Length | +Gets the number of elements in this mapping + |
+
Mapping | +Get the index mapping for this mapped array + |
+
Underlying | +Get the underlying slice for this mapped array + |
+
ToArray() | +Get the content of this mapped slice as an array + |
+
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit.Utils
+
+ Declaring Type: Slice<T>
+
+
A shared empty slice of type T
+ + +public static Slice<T> Empty { get; }
+
+
+Slice<T> | ++ |
+
+ Assembly: Topten.RichTextKit.dll
+ Namespace: Topten.RichTextKit.Utils
+
+ Declaring Type: Slice<T>
+
+
Fill the slice with a specified value
+ + +public void Fill(T value);
+
+
++ + T value + | ++ |
Empty | +A shared empty slice of type T + |
+ ||
Item[int] | Gets a reference to an element in the slice @@ -86,6 +91,11 @@ import: "../.common.page" | ||
Clear() | Clears the entire slice content + |
+ ||
Fill(T) | +Fill the slice with a specified value |
||
MappedSlice<T> | +Provides a mapped view of an underlying slice array, selecting arbitrary indicies +from the source array + |
+
Slice<T> | Represents a slice of an array |