[]
The TabbedTextExtent method computes the width and height of a character string.If the string contains one or more tab characters, the width of the string is based upon the specified tab stops. The TabbedTextExtent method uses the currently selected font to compute the dimensions of the string.
public bool TabbedTextExtent(string text, int[] tabStopPositions, out Size size)
Type | Name | Description |
---|---|---|
string | text | A string that saves a character string to be computed. |
int[] | tabStopPositions | An array containing the tab-stop positions, in device units. The tab stops must be sorted in increasing order; the smallest x-value should be the first item in the array. |
Size | size | If the function succeeds, the value is the dimensions of the string in logical units. Else the value is Size.Empty. |
Type | Description |
---|---|
bool | Retrun a value indictaes whether this function succeed or not. |