| 
    wxAutoExcel 2.0.0
    
   | 
 
Represents Microsoft Excel TextRange2 object. More...
#include <wxAutoExcelTextRange2.h>
  
Public Member Functions | |
| void | AddPeriods () | 
| Adds period (.) punctuation to the right side of the text contained in TextRange2 object for left-to-right languages and on the left side for right-to-left languages.   | |
| void | ChangeCase (MsoTextChangeCase type) | 
| Changes the case of a TextRange2 object to one of the values in the MsoTextChangeCase enumeration.   | |
| void | Copy () | 
| Copies a TextRange2 object.   | |
| void | Cut () | 
| Removes a portion or all of the text from a range of text.   | |
| void | Delete () | 
| Deletes a TextRange2 object.   | |
| wxExcelTextRange2 | Find (const wxString &findWhat, long *after=NULL, MsoTriState *matchCase=NULL, MsoTriState *wholeWords=NULL) | 
| Searches a TextRange2 object for a subset of text.   | |
| wxExcelTextRange2 | InsertAfter (const wxString &newText) | 
| Inserts text to the right of the existing text in the TextRange2 object.   | |
| wxExcelTextRange2 | InsertBefore (const wxString &newText) | 
| Inserts text to the left of the existing text in the TextRange2 object.   | |
| wxExcelTextRange2 | InsertChartField (MsoChartFieldType chartFieldType, const wxString &formula=wxEmptyString, long *position=NULL) | 
| Inserts a field into the body of a data label in a chart.   | |
| wxExcelTextRange2 | InsertSymbol (const wxString &fontName, long charNumber, MsoTriState unicode) | 
| Inserts a symbol from the specified font set into the range of text represented by the TextRange2 object.   | |
| wxExcelTextRange2 | Item (long index) | 
| Gets the range of text specified by the index number from the TextRange2 object.   | |
| void | LtrRun () | 
| Returns a TextRange2 Represents the specified subset of left-to-right text runs.   | |
| wxExcelTextRange2 | Paste () | 
| Pastes the contents of the Clipboard into the TextRange2 object.   | |
| wxExcelTextRange2 | PasteSpecial (MsoClipboardFormat format) | 
| Replaces the text range with the contents of the Clipboard in the format specified.   | |
| void | RemovePeriods () | 
| Removes all period (.) punctuation from the text in the TextRange2 object.   | |
| wxExcelTextRange2 | Replace (const wxString &findWhat, const wxString &replaceWhat, long *after=NULL, MsoTriState *matchCase=NULL, MsoTriState *wholeWords=NULL) | 
| Finds specific text in a text range, replaces the found text with a specified string, and returns a TextRange2 Represents the first occurrence of the found text.   | |
| void | RotatedBounds (double &X1, double &Y1, double &X2, double &Y2, double &X3, double &Y3, double &X4, double &Y4) | 
| NOT IMPLEMENTED.   | |
| wxExcelTextRange2 | RtlRun () | 
| Returns a TextRange2 Represents the specified subset of right-to-left text runs.   | |
| void | Select () | 
| Selects the TextRange2 object.   | |
| wxExcelTextRange2 | TrimText () | 
| Removes the white space on the left and right sides of the text in the TextRange2 object.   | |
| double | GetBoundHeight () | 
| Gets the height, in points, of the text bounding box for the specified text.   | |
| double | GetBoundLeft () | 
| Gets the left coordinate, in points, of the text bounding box for the specified text.   | |
| double | GetBoundTop () | 
| Gets the top coordinate, in points, of the text bounding box for the specified text.   | |
| double | GetBoundWidth () | 
| Gets the width, in points, of the text bounding box for the specified text.   | |
| wxExcelTextRange2 | GetCharacters (long start=1, long *length=NULL) | 
| MSDN documentation for TextRange2.Characters.   | |
| long | GetCount () | 
| Gets a Long indicating the number of items in the TextRange2 collection.   | |
| wxExcelFont2 | GetFont () | 
| Returns a Font Represents character formatting for the TextRange2 object.   | |
| MsoLanguageID | GetLanguageID () | 
| Gets or sets the MsoLanguageID value of the TextRange2 object.   | |
| void | SetLanguageID (MsoLanguageID languageID) | 
| Gets or sets the MsoLanguageID value of the TextRange2 object.   | |
| long | GetLength () | 
| Get a Long that represents the length of a text range.   | |
| wxExcelTextRange2 | GetLines () | 
| Returns a TextRange2 Represents the specified subset of text lines.   | |
| wxExcelTextRange2 | GetMathZones (long start=1, long *length=NULL) | 
| MSDN documentation for TextRange2.MathZones.   | |
| wxExcelParagraphFormat2 | GetParagraphFormat () | 
| Returns a ParagraphFormat Represents paragraph formatting for the specified text.   | |
| wxExcelTextRange2 | GetParagraphs () | 
| Gets a TextRange2 Represents the specified subset of text paragraphs.   | |
| wxExcelTextRange2 | GetRuns () | 
| Gets a TextRange2 Represents the specified subset of text runs.   | |
| wxExcelTextRange2 | GetSentences () | 
| Returns a TextRange2 Represents the specified subset of text sentences.   | |
| long | GetStart () | 
| Gets a Long value indicating the starting point of the specified text range.   | |
| wxString | GetText () | 
| Gets or sets a String value that represents the text in a text range.   | |
| void | SetText (const wxString &text) | 
| Gets or sets a String value that represents the text in a text range.   | |
| wxExcelTextRange2 | GetWords () | 
| Gets a TextRange2 Represents the specified subset of text words.   | |
| virtual wxString | GetAutoExcelObjectName_ () const | 
| Returns "TextRange2".   | |
  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 TextRange2 object.
| void wxAutoExcel::wxExcelTextRange2::AddPeriods | ( | ) | 
Adds period (.) punctuation to the right side of the text contained in TextRange2 object for left-to-right languages and on the left side for right-to-left languages.
| void wxAutoExcel::wxExcelTextRange2::ChangeCase | ( | MsoTextChangeCase | type | ) | 
Changes the case of a TextRange2 object to one of the values in the MsoTextChangeCase enumeration.
| void wxAutoExcel::wxExcelTextRange2::Copy | ( | ) | 
Copies a TextRange2 object.
| void wxAutoExcel::wxExcelTextRange2::Cut | ( | ) | 
Removes a portion or all of the text from a range of text.
[MSDN documentation for TextRange2.Cut]().
| void wxAutoExcel::wxExcelTextRange2::Delete | ( | ) | 
Deletes a TextRange2 object.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::Find | ( | const wxString & | findWhat, | 
| long * | after = NULL,  | 
        ||
| MsoTriState * | matchCase = NULL,  | 
        ||
| MsoTriState * | wholeWords = NULL  | 
        ||
| ) | 
Searches a TextRange2 object for a subset of text.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::InsertAfter | ( | const wxString & | newText | ) | 
Inserts text to the right of the existing text in the TextRange2 object.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::InsertBefore | ( | const wxString & | newText | ) | 
Inserts text to the left of the existing text in the TextRange2 object.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::InsertChartField | ( | MsoChartFieldType | chartFieldType, | 
| const wxString & | formula = wxEmptyString,  | 
        ||
| long * | position = NULL  | 
        ||
| ) | 
Inserts a field into the body of a data label in a chart.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::InsertSymbol | ( | const wxString & | fontName, | 
| long | charNumber, | ||
| MsoTriState | unicode | ||
| ) | 
Inserts a symbol from the specified font set into the range of text represented by the TextRange2 object.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::Item | ( | long | index | ) | 
Gets the range of text specified by the index number from the TextRange2 object.
| void wxAutoExcel::wxExcelTextRange2::LtrRun | ( | ) | 
Returns a TextRange2 Represents the specified subset of left-to-right text runs.
A text run consists of a range of characters that share the same font attributes.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::Paste | ( | ) | 
Pastes the contents of the Clipboard into the TextRange2 object.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::PasteSpecial | ( | MsoClipboardFormat | format | ) | 
Replaces the text range with the contents of the Clipboard in the format specified.
If the paste succeeds, this method returns a TextRange2 object including the text range that was pasted.
| void wxAutoExcel::wxExcelTextRange2::RemovePeriods | ( | ) | 
Removes all period (.) punctuation from the text in the TextRange2 object.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::Replace | ( | const wxString & | findWhat, | 
| const wxString & | replaceWhat, | ||
| long * | after = NULL,  | 
        ||
| MsoTriState * | matchCase = NULL,  | 
        ||
| MsoTriState * | wholeWords = NULL  | 
        ||
| ) | 
Finds specific text in a text range, replaces the found text with a specified string, and returns a TextRange2 Represents the first occurrence of the found text.
Returns Nothing if no match is found.
| void wxAutoExcel::wxExcelTextRange2::RotatedBounds | ( | double & | X1, | 
| double & | Y1, | ||
| double & | X2, | ||
| double & | Y2, | ||
| double & | X3, | ||
| double & | Y3, | ||
| double & | X4, | ||
| double & | Y4 | ||
| ) | 
NOT IMPLEMENTED.
wxAutomationObject does not support passing arguments by reference.
Gets the coordinates of the vertices of the text bounding box for the specified text range. Read-only.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::RtlRun | ( | ) | 
Returns a TextRange2 Represents the specified subset of right-to-left text runs.
A text run consists of a range of characters that share the same font attributes.
| void wxAutoExcel::wxExcelTextRange2::Select | ( | ) | 
Selects the TextRange2 object.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::TrimText | ( | ) | 
Removes the white space on the left and right sides of the text in the TextRange2 object.
| double wxAutoExcel::wxExcelTextRange2::GetBoundHeight | ( | ) | 
Gets the height, in points, of the text bounding box for the specified text.
| double wxAutoExcel::wxExcelTextRange2::GetBoundLeft | ( | ) | 
Gets the left coordinate, in points, of the text bounding box for the specified text.
| double wxAutoExcel::wxExcelTextRange2::GetBoundTop | ( | ) | 
Gets the top coordinate, in points, of the text bounding box for the specified text.
| double wxAutoExcel::wxExcelTextRange2::GetBoundWidth | ( | ) | 
Gets the width, in points, of the text bounding box for the specified text.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::GetCharacters | ( | long | start = 1,  | 
        
| long * | length = NULL  | 
        ||
| ) | 
| long wxAutoExcel::wxExcelTextRange2::GetCount | ( | ) | 
Gets a Long indicating the number of items in the TextRange2 collection.
| wxExcelFont2 wxAutoExcel::wxExcelTextRange2::GetFont | ( | ) | 
Returns a Font Represents character formatting for the TextRange2 object.
| MsoLanguageID wxAutoExcel::wxExcelTextRange2::GetLanguageID | ( | ) | 
Gets or sets the MsoLanguageID value of the TextRange2 object.
| void wxAutoExcel::wxExcelTextRange2::SetLanguageID | ( | MsoLanguageID | languageID | ) | 
Gets or sets the MsoLanguageID value of the TextRange2 object.
| long wxAutoExcel::wxExcelTextRange2::GetLength | ( | ) | 
Get a Long that represents the length of a text range.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::GetLines | ( | ) | 
Returns a TextRange2 Represents the specified subset of text lines.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::GetMathZones | ( | long | start = 1,  | 
        
| long * | length = NULL  | 
        ||
| ) | 
| wxExcelParagraphFormat2 wxAutoExcel::wxExcelTextRange2::GetParagraphFormat | ( | ) | 
Returns a ParagraphFormat Represents paragraph formatting for the specified text.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::GetParagraphs | ( | ) | 
Gets a TextRange2 Represents the specified subset of text paragraphs.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::GetRuns | ( | ) | 
Gets a TextRange2 Represents the specified subset of text runs.
A text run consists of a range of characters that share the same font attributes.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::GetSentences | ( | ) | 
Returns a TextRange2 Represents the specified subset of text sentences.
| long wxAutoExcel::wxExcelTextRange2::GetStart | ( | ) | 
Gets a Long value indicating the starting point of the specified text range.
| wxString wxAutoExcel::wxExcelTextRange2::GetText | ( | ) | 
Gets or sets a String value that represents the text in a text range.
| void wxAutoExcel::wxExcelTextRange2::SetText | ( | const wxString & | text | ) | 
Gets or sets a String value that represents the text in a text range.
| wxExcelTextRange2 wxAutoExcel::wxExcelTextRange2::GetWords | ( | ) | 
Gets a TextRange2 Represents the specified subset of text words.
      
  | 
  inlinevirtual | 
Returns "TextRange2".
Reimplemented from wxAutoExcel::wxExcelObject.