This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > ID > IDynamicGlyph Interface > IDynamicGlyph.QueryDimensions Method (ArcObjects .NET 10.4 SDK) |
Returns the width and height, in pixels, of the glyph. The width of the text glyph will be the width of the space character.
[Visual Basic .NET]
Public Sub QueryDimensions ( _
ByRef Width As Single&, _
ByRef Height As Single& _
)
[C#] public void QueryDimensions ( ref Single& Width, ref Single& Height );
[C++]
HRESULT QueryDimensions(
float* Width,
float* Height
);
[C++]
Parameters Width [in, out] Width is a parameter of type float Height [in, out] Height is a parameter of type float
Retrieves the Dynamic Glyph�s actual size in pixels.
For Dynamic Text Glyphs, the height is the height of the font, and the width is the width of the space character. Use IDynamicSymbolProperties2.GetTextSize method to get the actual pixel size of a specific string (with a specific Dynamic Text Symbol).