|
wxAutoExcel 2.0.0
|
Represents Microsoft Excel Style object. More...
#include <wxAutoExcelStyles.h>
Public Member Functions | |
| bool | Delete () |
| Deletes the object. | |
| bool | GetAddIndent () |
| If true then text is automatically indented when the text alignment in a cell is set to equal distribution (either horizontally or vertically.) | |
| void | SetAddIndent (bool addIndent) |
| If true then text is automatically indented when the text alignment in a cell is set to equal distribution (either horizontally or vertically.) | |
| wxExcelBorders | GetBorders () |
| Returns a Borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format). | |
| bool | GetBuiltIn () |
| Returns true if the style is one of the built-in ones. | |
| wxExcelFont | GetFont () |
| Returns a Font Represents the style font. | |
| bool | GetFormulaHidden () |
| If true the formula will be hidden when the worksheet is protected. | |
| void | SetFormulaHidden (bool formulaHidden) |
| If true the formula will be hidden when the worksheet is protected. | |
| XlHAlign | GetHorizontalAlignment () |
| Returns a XlHAlign value that represents the horizontal alignment. | |
| void | SetHorizontalAlignment (XlHAlign horizontalAlignment) |
| Sets a XlHAlign value that represents the horizontal alignment. | |
| bool | GetIncludeAlignment () |
| True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, IndentLevel, and Orientation properties. | |
| void | SetIncludeAlignment (bool includeAlignment) |
| True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, IndentLevel, and Orientation properties. | |
| bool | GetIncludeBorder () |
| True if the style includes the Color, ColorIndex, LineStyle, and Weight border properties. | |
| void | SetIncludeBorder (bool includeBorder) |
| True if the style includes the Color, ColorIndex, LineStyle, and Weight border properties. | |
| bool | GetIncludeFont () |
| True if the style includes the Background, Bold, Color, ColorIndex, FontStyle, Italic, Name, Size, Strikethrough, Subscript, Superscript, and Underline font properties. | |
| void | SetIncludeFont (bool includeFont) |
| True if the style includes the Background, Bold, Color, ColorIndex, FontStyle, Italic, Name, Size, Strikethrough, Subscript, Superscript, and Underline font properties. | |
| bool | GetIncludeNumber () |
| True if the style includes the NumberFormat property. | |
| void | SetIncludeNumber (bool includeNumber) |
| True if the style includes the NumberFormat property. | |
| bool | GetIncludePatterns () |
| True if the style includes the Color, ColorIndex, InvertIfNegative, Pattern, PatternColor, and PatternColorIndex interior properties. | |
| void | SetIncludePatterns (bool includePatterns) |
| True if the style includes the Color, ColorIndex, InvertIfNegative, Pattern, PatternColor, and PatternColorIndex interior properties. | |
| bool | GetIncludeProtection () |
| True if the style includes the FormulaHidden and Locked protection properties. | |
| void | SetIncludeProtection (bool includeProtection) |
| True if the style includes the FormulaHidden and Locked protection properties. | |
| long | GetIndentLevel () |
| Returns a the indent level for the style. | |
| void | SetIndentLevel (long indentLevel) |
| Sets the indent level for the style. | |
| wxExcelInterior | GetInterior () |
| Returns an Interior Represents the style interior. | |
| bool | GetLocked () |
| True if the style is locked. | |
| void | SetLocked (bool locked) |
| True if the style is locked. | |
| bool | GetMergeCells () |
| True if the style contains merged cells. | |
| wxString | GetName () |
| Returns the name of the object. | |
| wxString | GetNameLocal () |
| Returns the name of the object, in the language of the user. | |
| wxString | GetNumberFormat () |
| Returns a value that represents the format code for the object. | |
| void | SetNumberFormat (const wxString &numberFormat) |
| Sets a value that represents the format code for the object. | |
| wxString | GetNumberFormatLocal () |
| Returns a value that represents the format code for the object as a string in the language of the user. | |
| void | SetNumberFormatLocal (const wxString &numberFormatLocal) |
| Sets a value that represents the format code for the object as a string in the language of the user. | |
| XlOrientation | GetOrientation () |
| Returns the text orientation. | |
| void | SetOrientation (XlOrientation orientation) |
| Sets athe text orientation. | |
| long | GetReadingOrder () |
| Returns the style reading order. | |
| void | SetReadingOrder (long readingOrder) |
| Sets the style reading order. | |
| bool | GetShrinkToFit () |
| True if text automatically shrinks to fit in the available column width. | |
| void | SetShrinkToFit (bool shrinkToFit) |
| True if text automatically shrinks to fit in the available column width. | |
| XlVAlign | GetVerticalAlignment () |
| Returns the style vertical alignment. | |
| void | SetVerticalAlignment (XlVAlign verticalAlignment) |
| Sets the style vertical alignment. | |
| bool | GetWrapText () |
| True if Microsoft Excel wraps the text. | |
| void | SetWrapText (bool wrapText) |
| True if Microsoft Excel wraps the text. | |
| virtual wxString | GetAutoExcelObjectName_ () const |
| Returns "Style". | |
Public Member Functions inherited from wxAutoExcel::wxExcelObject | |
| bool | IsOk_ () const |
| Returns true if the object has a valid dispatch. | |
| wxString | GetAutomationObjectName_ (bool stripUnderscores=false) const |
| Returns object name as provided by IDispatch->GetTypeInfo()->GetDocumentation(MEMBERID_NIL, &name, NULL, NULL, NULL). | |
| wxSharedPtr< wxAutomationObject > | GetAutomationObject_ () |
| Returns the underlying wxAutomationObject. | |
| operator bool () const | |
| Returns true if the object has a valid dispatch and its last automation call (if any), i.e. | |
| WXLCID | GetAutomationLCID_ () const |
| Returns the locale identifier used in automation calls. | |
| bool | SetAutomationLCID_ (WXLCID lcid) |
| Sets the locale identifier to be used in automation calls. | |
| bool | GetPropertyAndMethodNames_ (wxArrayString &propertyNames, wxArrayString &methodNames, bool includeHidden=false) |
| Returns lists of property and method names the automation interface exposes. | |
| bool | GetUnimplementedObject_ (const wxString &name, wxAutomationObject &object) |
| Helper function for receiving an automation object not implemented in wxAutoExcel, see FAQ on how to use. | |
Additional Inherited Members | |
Public Types inherited from wxAutoExcel::wxExcelObject | |
| enum | ErrorFlags { Err_DoNothing = 0 , Err_LogOnInvalidDispatch = 1 , Err_AssertOnInvalidDispatch = 1 << 1 , Err_ThrowOnInvalidDispatch = 1 << 2 , Err_LogOnInvalidArgument = 1 << 3 , Err_AssertOnInvalidArgument = 1 << 4 , Err_ThrowOnInvalidArgument = 1 << 5 , Err_LogOnFailedInvoke = 1 << 6 , Err_AssertOnFailedInvoke = 1 << 7 , Err_ThrowOnFailedInvoke = 1 << 8 , Err_LogOnInvalidReturnType = 1 << 9 , Err_AssertOnInvalidReturnType = 1 << 10 , Err_ThrowOnInvalidReturnType = 1 << 11 , Err_LogOnOtherError = 1 << 12 , Err_AssertOnOtherError = 1 << 13 , Err_ThrowOnOtherError = 1 << 14 } |
| Flags affecting the behaviour of wxExcelObject and its descendants when an error occurs during accessing an Excel object property or calling its method. More... | |
Static Public Member Functions inherited from wxAutoExcel::wxExcelObject | |
| static unsigned | GetErrorMode_ () |
| Sets the error mode to the combination of wxExcelObject::ErrorFlags. | |
| static void | SetErrorMode_ (unsigned mode) |
| Sets the error mode as the combination of wxExcelObject::ErrorFlags. | |
| static bool | GetUnimplementedCollectionItem_ (wxAutomationObject &collection, const long index, wxAutomationObject &item, bool asProperty) |
| Helper function for obtaining an item from MS Excel collection not implemented in wxAutoExcel, see FAQ on how to use. | |
Represents Microsoft Excel Style object.
| bool wxAutoExcel::wxExcelStyle::Delete | ( | ) |
Deletes the object.
| bool wxAutoExcel::wxExcelStyle::GetAddIndent | ( | ) |
If true then text is automatically indented when the text alignment in a cell is set to equal distribution (either horizontally or vertically.)
[MSDN documentation for Style.AddIndent]().
| void wxAutoExcel::wxExcelStyle::SetAddIndent | ( | bool | addIndent | ) |
If true then text is automatically indented when the text alignment in a cell is set to equal distribution (either horizontally or vertically.)
[MSDN documentation for Style.AddIndent]().
| wxExcelBorders wxAutoExcel::wxExcelStyle::GetBorders | ( | ) |
Returns a Borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format).
| bool wxAutoExcel::wxExcelStyle::GetBuiltIn | ( | ) |
Returns true if the style is one of the built-in ones.
| wxExcelFont wxAutoExcel::wxExcelStyle::GetFont | ( | ) |
Returns a Font Represents the style font.
| bool wxAutoExcel::wxExcelStyle::GetFormulaHidden | ( | ) |
If true the formula will be hidden when the worksheet is protected.
| void wxAutoExcel::wxExcelStyle::SetFormulaHidden | ( | bool | formulaHidden | ) |
If true the formula will be hidden when the worksheet is protected.
| XlHAlign wxAutoExcel::wxExcelStyle::GetHorizontalAlignment | ( | ) |
Returns a XlHAlign value that represents the horizontal alignment.
| void wxAutoExcel::wxExcelStyle::SetHorizontalAlignment | ( | XlHAlign | horizontalAlignment | ) |
Sets a XlHAlign value that represents the horizontal alignment.
| bool wxAutoExcel::wxExcelStyle::GetIncludeAlignment | ( | ) |
True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, IndentLevel, and Orientation properties.
| void wxAutoExcel::wxExcelStyle::SetIncludeAlignment | ( | bool | includeAlignment | ) |
True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, IndentLevel, and Orientation properties.
| bool wxAutoExcel::wxExcelStyle::GetIncludeBorder | ( | ) |
True if the style includes the Color, ColorIndex, LineStyle, and Weight border properties.
| void wxAutoExcel::wxExcelStyle::SetIncludeBorder | ( | bool | includeBorder | ) |
True if the style includes the Color, ColorIndex, LineStyle, and Weight border properties.
| bool wxAutoExcel::wxExcelStyle::GetIncludeFont | ( | ) |
True if the style includes the Background, Bold, Color, ColorIndex, FontStyle, Italic, Name, Size, Strikethrough, Subscript, Superscript, and Underline font properties.
| void wxAutoExcel::wxExcelStyle::SetIncludeFont | ( | bool | includeFont | ) |
True if the style includes the Background, Bold, Color, ColorIndex, FontStyle, Italic, Name, Size, Strikethrough, Subscript, Superscript, and Underline font properties.
| bool wxAutoExcel::wxExcelStyle::GetIncludeNumber | ( | ) |
True if the style includes the NumberFormat property.
| void wxAutoExcel::wxExcelStyle::SetIncludeNumber | ( | bool | includeNumber | ) |
True if the style includes the NumberFormat property.
Read/write Boolean
| bool wxAutoExcel::wxExcelStyle::GetIncludePatterns | ( | ) |
True if the style includes the Color, ColorIndex, InvertIfNegative, Pattern, PatternColor, and PatternColorIndex interior properties.
| void wxAutoExcel::wxExcelStyle::SetIncludePatterns | ( | bool | includePatterns | ) |
True if the style includes the Color, ColorIndex, InvertIfNegative, Pattern, PatternColor, and PatternColorIndex interior properties.
| bool wxAutoExcel::wxExcelStyle::GetIncludeProtection | ( | ) |
True if the style includes the FormulaHidden and Locked protection properties.
| void wxAutoExcel::wxExcelStyle::SetIncludeProtection | ( | bool | includeProtection | ) |
True if the style includes the FormulaHidden and Locked protection properties.
| long wxAutoExcel::wxExcelStyle::GetIndentLevel | ( | ) |
Returns a the indent level for the style.
| void wxAutoExcel::wxExcelStyle::SetIndentLevel | ( | long | indentLevel | ) |
Sets the indent level for the style.
| wxExcelInterior wxAutoExcel::wxExcelStyle::GetInterior | ( | ) |
Returns an Interior Represents the style interior.
| bool wxAutoExcel::wxExcelStyle::GetLocked | ( | ) |
True if the style is locked.
| void wxAutoExcel::wxExcelStyle::SetLocked | ( | bool | locked | ) |
True if the style is locked.
| bool wxAutoExcel::wxExcelStyle::GetMergeCells | ( | ) |
True if the style contains merged cells.
| wxString wxAutoExcel::wxExcelStyle::GetName | ( | ) |
Returns the name of the object.
| wxString wxAutoExcel::wxExcelStyle::GetNameLocal | ( | ) |
Returns the name of the object, in the language of the user.
| wxString wxAutoExcel::wxExcelStyle::GetNumberFormat | ( | ) |
Returns a value that represents the format code for the object.
| void wxAutoExcel::wxExcelStyle::SetNumberFormat | ( | const wxString & | numberFormat | ) |
Sets a value that represents the format code for the object.
| wxString wxAutoExcel::wxExcelStyle::GetNumberFormatLocal | ( | ) |
Returns a value that represents the format code for the object as a string in the language of the user.
| void wxAutoExcel::wxExcelStyle::SetNumberFormatLocal | ( | const wxString & | numberFormatLocal | ) |
Sets a value that represents the format code for the object as a string in the language of the user.
| XlOrientation wxAutoExcel::wxExcelStyle::GetOrientation | ( | ) |
Returns the text orientation.
| void wxAutoExcel::wxExcelStyle::SetOrientation | ( | XlOrientation | orientation | ) |
Sets athe text orientation.
| long wxAutoExcel::wxExcelStyle::GetReadingOrder | ( | ) |
Returns the style reading order.
Can be one of the following constants: xlRTL (right-to-left), xlLTR (left-to-right), or xlContext.
| void wxAutoExcel::wxExcelStyle::SetReadingOrder | ( | long | readingOrder | ) |
Sets the style reading order.
Can be one of the following constants: xlRTL (right-to-left), xlLTR (left-to-right), or xlContext.
| bool wxAutoExcel::wxExcelStyle::GetShrinkToFit | ( | ) |
True if text automatically shrinks to fit in the available column width.
| void wxAutoExcel::wxExcelStyle::SetShrinkToFit | ( | bool | shrinkToFit | ) |
True if text automatically shrinks to fit in the available column width.
| XlVAlign wxAutoExcel::wxExcelStyle::GetVerticalAlignment | ( | ) |
Returns the style vertical alignment.
| void wxAutoExcel::wxExcelStyle::SetVerticalAlignment | ( | XlVAlign | verticalAlignment | ) |
Sets the style vertical alignment.
| bool wxAutoExcel::wxExcelStyle::GetWrapText | ( | ) |
True if Microsoft Excel wraps the text.
| void wxAutoExcel::wxExcelStyle::SetWrapText | ( | bool | wrapText | ) |
True if Microsoft Excel wraps the text.
|
inlinevirtual |
Returns "Style".
Reimplemented from wxAutoExcel::wxExcelObject.