TextEmbeddedObject.ComputeBoundingBox Method (Boolean, Boolean)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the computed bounding box of the text object.

Namespace:   System.Windows.Media.TextFormatting
Assembly:  PresentationCore (in PresentationCore.dll)

public abstract Rect ComputeBoundingBox(
	bool rightToLeft,
	bool sideways
)

Parameters

rightToLeft
Type: System.Boolean

A Boolean value that determines if the text object is drawn from right to left.

sideways
Type: System.Boolean

A Boolean value that determines if the text object is drawn with its side parallel to the baseline.

Return Value

Type: System.Windows.Rect

A Rect value that represents the bounding box size of the text object.

.NET Framework
Available since 3.0
Return to top
Show: