Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.19 KB

textblock_baselineoffset.md

File metadata and controls

35 lines (26 loc) · 1.19 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.TextBlock.BaselineOffset
winrt property

Microsoft.UI.Xaml.Controls.TextBlock.BaselineOffset

-description

Returns a value by which each line of text is offset from a baseline.

-property-value

The amount by which each line of text is offset from the baseline, in device independent pixels. The default is NaN. See Remarks below.

-remarks

If the BaselineOffset is NaN, then an optimal baseline offset is automatically calculated from the current font characteristics.

Note

In C#, you can obtain NaN from Double.NaN.

In C++, you can obtain NaN by using the NAN macro or std::numeric_limits<double>::quiet_NaN().

Do not use the == operator to test for NaN.

In C#, use Double.IsNaN() to test for NaN.

In C++, use isnan() to test for NaN.

-examples

-see-also