[]
Provides the size, in pixels, of the specified content drawn on the specified Graphics surface.
public Size Measure(Graphics g, object value)
Type | Name | Description |
---|---|---|
Graphics | g | The Graphics object to use for measuring. |
object | value | The content to measure. |
Type | Description |
---|---|
Size | The desired Size, in pixels, of the content drawn in a single line with the current style settings in the specified device context. |
Provides the size, in pixels, of the specified content drawn on the specified Graphics surface with the specified style.
public Size Measure(Style s, Graphics g, object value)
Type | Name | Description |
---|---|---|
Style | s | The Style object to use. |
Graphics | g | The Graphics object to use for measuring. |
object | value | The content to measure. |
Type | Description |
---|---|
Size | The desired Size, in pixels, of the content drawn in a single line with the specified style settings in the specified device context. |
Provides the size, in pixels, of the specified content drawn on the specified Graphics surface within the rectangle of the specified width.
public Size Measure(Graphics g, object value, int width)
Type | Name | Description |
---|---|---|
Graphics | g | The Graphics object to use for measuring. |
object | value | The content to measure. |
int | width | The available width. |
Type | Description |
---|---|
Size | The desired Size, in pixels, of the content drawn in within the rectangle of the specified width with the current style settings in the specified device context. |
Provides the size, in pixels, of the specified content drawn on the specified Graphics surface within the rectangle of the specified width with the specified style settings.
public Size Measure(Style s, Graphics g, object value, int width)
Type | Name | Description |
---|---|---|
Style | s | The Style object to use. |
Graphics | g | The Graphics object to use for measuring. |
object | value | The content to measure. |
int | width | The available width. |
Type | Description |
---|---|
Size | The desired Size, in pixels, of the content drawn in within the rectangle of the specified width with the specified style settings in the specified device context. |