ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.MeasuredText Struct Reference

Public Member Functions

PixelRect Rect (Alignment alignment)
 Return a rectangle representing the bounding box of the entire text with the alignment point centered at the origin.
 

Properties

PixelSize Size [get]
 Size of the entire multiline label in pixels. Width is the largest value returned by paint.MeasureText(). Height is the line height multiplied by the number of lines.
 
float LineHeight [get]
 Vertical spacing between each line. This is the value returned by GetFontMetrics().
 
float[] LineWidths [get]
 Width of each line of text in pixel units.
 
required float VerticalOffset [get]
 Recommended vertical offset when calling SKCanvas.DrawText(). See https://github.com/ScottPlot/ScottPlot/issues/3700 for details.
 
required float Bottom [get]
 Distance below the baseline the rendered font may occupy.
 
float Width [get]
 Width of the entire text. Equals the length of the widest line.
 
float Height [get]
 Height of the entire text.
 

Member Function Documentation

◆ Rect()

PixelRect ScottPlot.MeasuredText.Rect ( Alignment  alignment)
inline

Return a rectangle representing the bounding box of the entire text with the alignment point centered at the origin.

Property Documentation

◆ Bottom

required float ScottPlot.MeasuredText.Bottom
get

Distance below the baseline the rendered font may occupy.

◆ Height

float ScottPlot.MeasuredText.Height
get

Height of the entire text.

◆ LineHeight

float ScottPlot.MeasuredText.LineHeight
get

Vertical spacing between each line. This is the value returned by GetFontMetrics().

◆ LineWidths

float [] ScottPlot.MeasuredText.LineWidths
get

Width of each line of text in pixel units.

◆ Size

PixelSize ScottPlot.MeasuredText.Size
get

Size of the entire multiline label in pixels. Width is the largest value returned by paint.MeasureText(). Height is the line height multiplied by the number of lines.

◆ VerticalOffset

required float ScottPlot.MeasuredText.VerticalOffset
get

Recommended vertical offset when calling SKCanvas.DrawText(). See https://github.com/ScottPlot/ScottPlot/issues/3700 for details.

◆ Width

float ScottPlot.MeasuredText.Width
get

Width of the entire text. Equals the length of the widest line.


The documentation for this struct was generated from the following file: