Better FontRun.ToString() for help debugging
This commit is contained in:
Родитель
3c0cd3f0da
Коммит
c20c0d3a3f
|
@ -187,7 +187,14 @@ namespace Topten.RichTextKit
|
|||
/// <returns>Debug string</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{Start} - {End} @ {XCoord} - {XCoord + Width} = '{Utf32Utils.FromUtf32(CodePoints)}'";
|
||||
switch (RunKind)
|
||||
{
|
||||
case FontRunKind.Normal:
|
||||
return $"{Start} - {End} @ {XCoord} - {XCoord + Width} = '{Utf32Utils.FromUtf32(CodePoints)}'";
|
||||
|
||||
default:
|
||||
return $"{Start} - {End} @ {XCoord} - {XCoord + Width} {RunKind}'";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Загрузка…
Ссылка в новой задаче