DioDocs for PDF
MeasureRotatedText メソッド

DS.Documents.Imaging アセンブリ > GrapeCity.Documents.Drawing 名前空間 > GcGraphics クラス : MeasureRotatedText メソッド
The GrapeCity.Documents.Text.TextLayout to measure.
The text rotation angle, in degrees. The expected range is [-90, +90].
If false, text lines are stacked horizontally along the top and bottom sides of rect. If true, the lines are stacked vertically along the left and right sides of the rectangle.
The target rectangle for the text.
Alignment of the text in the target rectangle.
Calculates the bounds of rotated text inside an unrotated rectangle.

Note that the original textLayout will be changed by this method. If necessary, create a clone in advance.

Also note that the values of the following properties are ignored: GrapeCity.Documents.Text.TextLayout.MaxWidth, GrapeCity.Documents.Text.TextLayout.MaxHeight, GrapeCity.Documents.Text.TextLayout.FlowDirection, GrapeCity.Documents.Text.TextLayout.CanSkipFirstLineWithIndentation, GrapeCity.Documents.Text.TextLayout.ObjectRects, GrapeCity.Documents.Text.TextLayout.ParagraphAlignment, GrapeCity.Documents.Text.TextLayout.MarginLeft, GrapeCity.Documents.Text.TextLayout.MarginRight, GrapeCity.Documents.Text.TextLayout.MarginTop, GrapeCity.Documents.Text.TextLayout.MarginBottom, GrapeCity.Documents.Text.TextLayout.ColumnWidth, GrapeCity.Documents.Text.TextLayout.RowHeight.

シンタックス
'宣言
 
Public Function MeasureRotatedText( _
   ByVal textLayout As TextLayout, _
   ByVal angle As System.Integer, _
   ByVal verticalStacking As System.Boolean, _
   ByVal rect As System.Drawing.RectangleF, _
   ByVal alignment As RotatedTextAlignment _
) As System.Drawing.RectangleF
public System.Drawing.RectangleF MeasureRotatedText( 
   TextLayout textLayout,
   System.int angle,
   System.bool verticalStacking,
   System.Drawing.RectangleF rect,
   RotatedTextAlignment alignment
)

パラメータ

textLayout
The GrapeCity.Documents.Text.TextLayout to measure.
angle
The text rotation angle, in degrees. The expected range is [-90, +90].
verticalStacking
If false, text lines are stacked horizontally along the top and bottom sides of rect. If true, the lines are stacked vertically along the left and right sides of the rectangle.
rect
The target rectangle for the text.
alignment
Alignment of the text in the target rectangle.

戻り値の型

The rectangle occupied by the rotated text.
参照

GcGraphics クラス
GcGraphics メンバ