MKI_TEXTSTYLEDEF (Entity Data Classes) Changed in Version 2017.1 |
www.CAD6.com |
C++ Syntaxclass MKI_TEXTSTYLEDEF { public:
__int32 m_nUseProperty; MKI_COLORVALUE m_cFillColor, m_cLineColor; MKI_COLORMODEL m_cFillColorMode, m_cLineColorMode; __int32 m_nFillMode; bool m_fUseFont; MKI_FONTDEF m_cFont; __int32 m_nModeBold, m_nModeItalic, m_nModeUnderline, m_nModeStrikeout; double m_dScale, m_dOffset, m_dMarginL, m_dMarginR;
void Init( void );
bool IsFilled( void ) const;
bool IsErased( void ) const;
bool IsOpaque( void ) const;
bool IsFramed( void ) const; };
This structure contains a text style definition. Such a text style can be used by means of the <h1> to <h9> tags in texts, see Text Formatting.
Element Descriptionm_fUseProperty [__int32] Bit-wise OR combination of flags indicating which of the following elements shall be applied (see MKI_USE_*). m_cFillColor [MKI_COLORVALUE] Color of the text's surface in the notation defined by m_cFillColorMode. m_cLineColor [MKI_COLORVALUE] Color of the text's outline in the notation defined by m_cLineColorMode. m_cFillColorMode [MKI_COLORMODEL] Determines how the content of m_cFillColor is to be interpreted (see MKI_COLORMODE_*). m_cLineColorMode [MKI_COLORMODEL] Determines how the content of m_cLineColor is to be interpreted (see MKI_COLORMODE_*). m_nFillMode [__int32] Determines, which parts of the text are to be drawn (see MKI_FILLMODE_*). m_fUseFont [bool] If true, the following font description shall be applied. m_cFont [MKI_FONTDEF] Description of the font to be used for the text. m_nModeBold [__int32] Indicates if the "bold" formatting mode (<b>) shall be modified (see MKI_TEXTSTYLEMODE_*). m_nModeItalic [__int32] Indicates if the "italic" formatting mode (<i>) shall be modified (see MKI_TEXTSTYLEMODE_*). m_nModeUnderline [__int32] Indicates if the "underline" formatting mode (<u>) shall be modified (see MKI_TEXTSTYLEMODE_*). m_nModeStrikeout [__int32] Indicates if the "strikeout" formatting mode (<s>) shall be modified (see MKI_TEXTSTYLEMODE_*). m_dScale [double] Scaling of the text relative to the base size (<size>). Allowed values are MKI_EDIT_MIN to MKI_EDIT_MAX inclusive, default value is 1. m_dOffset [double] Vertical offset of the text relative to the base line (<dy>). Allowed values are -MKI_EDIT_MAX to MKI_EDIT_MAX inclusive, default value is 0. m_dMarginL [double] Left indentation margin for text alignment (<lmargin>). Allowed values are -MKI_EDIT_MAX to MKI_EDIT_MAX inclusive, default value is 0. m_dMarginR [double] Right indentation margin for text alignment (<lmargin>). Allowed values are -MKI_EDIT_MAX to MKI_EDIT_MAX inclusive, default value is 0.
MKD SyntaxThe section =TEXTSTYLE= contains up to MKI_TEXTSTYLE_TOTAL text style definitions. Text styles can be used to format texts by means of <h1> to <<h9> tags.
Head of Section=TEXTSTYLE=; TotalNum;
Entry for each Text Style DefinitionUseProperty,FillColor,LineColor,FillMode,UseFont,Font, ModeBold,ModeItalic,ModeUnderline,ModeStrikeout, Scale,Offset,MarginL,MarginR;
End of Section=END=;
If the section =TEXTSTYLE= does not exist, assume all text styles to be empty.
Element Descriptionm_nTotalNum [__int32] Number of text styles to follow. Valid range is 0 to MKI_TEXTSTYLE_TOTAL inclusive.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH