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


IGridLabel2 Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IGridLabel2 Interface

Provides additional access to members that control the way a map grid is labeled.

Product Availability

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

Members

Description
Read-only property Applies Indicates if this grid label can be used with the specified map grid.
Read/write property Color The color of the grid label.
Read-only property DisplayName The display name for the type of grid label.
Method Draw Draws a label on the specified grid axis.
Read/write property EditObject The interface to an object that can be edited with a property sheet. The object is either the grid label itself or a single editable property.
Read/write property Font The font used by the grid label.
Read/write property FontSize The font size used by the grid label.
Read/write property LabelAlignment Indicates if the grid label is horizontal (true) or vertical (false) on the specified axis.
Read/write property LabelOffset The offset of the grid label from the border in points.
Method Preview Draws a preview of the grid label into the specified hdc.
Method QueryTextExtent Determines the extent of a label's text on the specified grid axis.

CoClasses that implement IGridLabel2

CoClasses and Classes Description
BackgroundTabStyle A background tab style grid label for index grids.
ButtonTabStyle A button tab style grid label for index grids.
ContinuousTabStyle A continuous tab style grid label for index grids.
CornerGridLabel A grid label with special corner display properties.
DMSGridLabel A grid label in degrees, minutes and seconds.
FormattedGridLabel A grid label that uses a formatted number.
MixedFontGridLabel A grid label that uses mixed fonts.
RoundedTabStyle A rounded tab style grid label for index grids.