GetCharsInWidth Method
GetCharsInWidth(Double)
Returns number of characters painted with current font that will fit into specified Width.
Declaration
public virtual int GetCharsInWidth(double width)
Parameters
Type | Name | Description |
---|---|---|
Double | width | Width to fit characters. |
Returns
Type | Description |
---|---|
Int32 | Number of characters that can fit in. |
GetCharsInWidth(Double, Boolean)
Declaration
protected int GetCharsInWidth(double width, bool exact)
Parameters
Type | Name | Description |
---|---|---|
Double | width | |
Boolean | exact |
Returns
Type | Description |
---|---|
Int32 |