BCGSuite for MFC
CBCGPTextFormat

Detailed Description

The CBCGPTextFormat class implements the functionality of text format. Many drawing methods implemented in CBCGPGraphicsManager accept CBCGPTextFormat as a parameter specifying text properties.

+ Inheritance diagram for CBCGPTextFormat:

Public Types

enum  BCGP_FONT_STYLE { , BCGP_FONT_STYLE_NORMAL = BCGP_FONT_STYLE_FIRST, BCGP_FONT_STYLE_OBLIQUE = 1, BCGP_FONT_STYLE_ITALIC = 2 }
 
enum  BCGP_TEXT_ALIGNMENT { , BCGP_TEXT_ALIGNMENT_LEADING = BCGP_TEXT_ALIGNMENT_FIRST, BCGP_TEXT_ALIGNMENT_TRAILING = 1, BCGP_TEXT_ALIGNMENT_CENTER = 2 }
 

Public Member Functions

 CBCGPTextFormatDefault constructor.
 
 CBCGPTextFormatConstructor.
 
 CBCGPTextFormatConstructor.
 
 CBCGPTextFormatConstructor.
 
 CBCGPTextFormatCopy constructor.
 
 CreateCreates a text format indirectly.
 
 CreateFromLogFontCreates a text format from the LOGFONT structure.
 
 EnableColorFontSpecifies whether colored font is enabled.
 
 ExportToLogFontExports the text format to the LOGFONT structure.
 
 GetCharSetGets character set.
 
 GetDrawingAngleGets text drawing angle.
 
 GetFontFamilyGets a copy of the font family name.
 
 GetFontLocaleGets a copy of the locale name.
 
 GetFontSizeGets the font height.
 
 GetFontStyleGets the font style.
 
 GetFontWeightGets the font weight.
 
 GetOriginalFontSizeGets the original (not scaled) font height.
 
 GetTextAlignmentGets alignment option of text relative to layout box's leading and trailing edge.
 
 GetTextVerticalAlignmentGets vertical alignment option of text relative to layout box's leading and trailing edge.
 
 IsClipTextTells whether the text should be clipped inside a bounding rectangle.
 
 IsColorFontEnabledTells whether colored font is enabled.
 
 IsEndEllipsisTells whether text has "end-ellipsis" attribute.
 
 IsStrikethroughTells whether text has "strike-through" attribute.
 
 IsUnderlineTells whether text has "underline" attribute.
 
 IsWordWrapGets word wrapping option.
 
 SetClipTextSpecifies whether the text should be clipped inside a bounding rectangle.
 
 SetDrawingAngleSets text drawing angle.
 
 SetEndEllipsisSpecifies "end-ellipsis" text attribute.
 
 SetFontFamilySets the font family.
 
 SetFontSizeSets the font size.
 
 SetFontStyleSets the font style.
 
 SetFontWeightSets the font weight.
 
 SetStrikethroughSpecifies "strike-through" text attribute.
 
 SetTextAlignmentSets alignment option of text relative to layout box's leading and trailing edge.
 
 SetTextVerticalAlignmentSets vertical alignment option of text relative to layout box's leading and trailing edge.
 
 SetUnderlineSpecifies "underline" text attribute.
 
 SetWordWrapSets word wrapping option.
 
- Public Member Functions inherited from CBCGPGraphicsResource
 DetachCall this method to detach internal resource handle from this object.
 
 GetGraphicsManagerReturns a reference to CBCGPGraphicsManager - derived object associated with this object.
 
 GetHandleReturns a resource handle associated with this object.
 
 GetHandle1Returns a second (optional) resource handle associated with this object.
 
 GetHandle2Returns a third (optional) resource handle associated with this object.
 
 IsNullCheck whether this object has a NULL handle.
 
 SetCall this method to associate this object with a CBCGPGraphicsManager - derived object and resource handle(s).
 

Additional Inherited Members

- Protected Member Functions inherited from CBCGPGraphicsResource
 CBCGPGraphicsResourceDefault constructor.