MultiSelect for WinForms
TextExtentEx メソッド

C1.Win.Input.6 アセンブリ > C1.Framework.Drawing.Gdi.DeviceContexts 名前空間 > DeviceContext クラス : TextExtentEx メソッド
A string for which extents are to be retrieved.
Specifies the maximum allowable width, in logical units, of the formatted string.
Receives a count of the maximum number of characters that will fit in the space specified by the maxExtent parameter.
Pointer to an array of integers that receives partial string extents. Each element in the array gives the distance, in logical units, between the beginning of the string and one of the characters that fits in the space specified by the maxExtent parameter. This array must have at least as many elements as character count in text. The function fills the array with valid extents for as many characters as are specified by the fitCharNumber parameter.
Retrieves the number of characters in a specified string that will fit within a specified space and fills an array with the text extent for each of those characters.
シンタックス
'宣言
 
Public Function TextExtentEx( _
   ByVal text As System.String, _
   ByVal maxExtent As System.Integer, _
   ByRef fitCharNumber As System.Integer, _
   ByVal fitExtents() As System.Integer _
) As System.Drawing.Size
public System.Drawing.Size TextExtentEx( 
   System.string text,
   System.int maxExtent,
   out System.int fitCharNumber,
   System.int[] fitExtents
)

パラメータ

text
A string for which extents are to be retrieved.
maxExtent
Specifies the maximum allowable width, in logical units, of the formatted string.
fitCharNumber
Receives a count of the maximum number of characters that will fit in the space specified by the maxExtent parameter.
fitExtents
Pointer to an array of integers that receives partial string extents. Each element in the array gives the distance, in logical units, between the beginning of the string and one of the characters that fits in the space specified by the maxExtent parameter. This array must have at least as many elements as character count in text. The function fills the array with valid extents for as many characters as are specified by the fitCharNumber parameter.

戻り値の型

Receives the dimensions of the string, in logical units.
参照

DeviceContext クラス
DeviceContext メンバ