CGXStylesMap Class Members

Construction

 CGXStylesMap Constructs a styles-map object.

Parent Grid

 Grid Returns a pointer to a CGXGridCore object that uses this stylesmap object. If the stylesmap object is shared by several grids, a pointer to the first CGXGridCore object is returned.

Operations

 operator= Copies a styles-map object.

Persistence

 ReadProfile Loads the styles-map data from the profile.
 WriteProfile Writes the styles-map data to the profile.
 SetSection Specifies the name of the profile section.
 GetSection Returns the name of the profile section.
 Serialize Serializes the styles-map.

Styles

 CreateStandardStyles Creates and registers the default base styles for the styles-map (standard, column and row header style).
 RegisterStyle Adds a base style to the styles-map.
 LookupStyle Looks up a specified base style.
 RemoveStyle Removes a base style from the styles-map.
 IsSystemStyle Determines if a base style is removable.
 GetBaseStyleId Returns the base style id for the specified style. The style must have been registered with RegisterStyle before. The value returned by this method is the same as RegisterStyle returns.
 GetStyleName Returns the style name for the specified base style id.

User Attributes, Controls

 AddUserAttribute Call this method to register a user-defined attribute for CGXStyle objects to be displayed in the CGXStyleSheet dialog.
 RegisterDefaultControls Call this method to register all default cell types to be displayed in the CGXStyleSheet dialog.
 RegisterDefaultUserAttributes Call this method to register all default user attributes for CGXStyle objects to be displayed in the CGXStyleSheet dialog.

CGXStylesMap

Class Overview