CanvasTextLayoutLayoutBoundsIncludingTrailingWhitespace Property |
Namespace: Microsoft.Graphics.Canvas.Text
The bounds are relative to the text's layout box. These bounds are in DIPs, and do not take into account any transforms that might be applied while rendering the text.
The location of trailing whitespace is as follows:
Text direction | Location of trailing whitespace |
---|---|
LeftToRightThenTopToBottom | At the right |
RightToLeftThenTopToBottom | At the left |
LeftToRightThenBottomToTop | At the right |
RightToLeftThenBottomToTop | At the left |
TopToBottomThenLeftToRight | At the bottom |
BottomToTopThenLeftToRight | At the top |
TopToBottomThenRightToLeft | At the bottom |
BottomToTopThenRightToLeft | At the top |
Word wrapping isn't affected by trailing whitespace. To obtain the bounds against which Win2D word-wraps, use LayoutBounds.