This document is archived and information here might be outdated.  Recommended version.


IDynamicGlyph.QueryDimensions Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Display)  

IDynamicGlyph.QueryDimensions Method

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(
  System.Single* Width,
  System.Single* Height
);
[C++]

Parameters Width [in, out]
Width is a parameter of type single* Height [in, out]
Height is a parameter of type single*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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).

See Also

IDynamicGlyph Interface