📄 msword.h
字号:
void SetLanguageID(long nNewValue);
LPDISPATCH GetSynonymInfo();
LPDISPATCH GetHyperlinks();
LPDISPATCH GetListParagraphs();
LPDISPATCH GetSubdocuments();
BOOL GetGrammarChecked();
void SetGrammarChecked(BOOL bNewValue);
BOOL GetSpellingChecked();
void SetSpellingChecked(BOOL bNewValue);
long GetHighlightColorIndex();
void SetHighlightColorIndex(long nNewValue);
LPDISPATCH GetColumns();
LPDISPATCH GetRows();
BOOL GetIsEndOfRowMark();
long GetBookmarkID();
long GetPreviousBookmarkID();
LPDISPATCH GetFind();
LPDISPATCH GetPageSetup();
void SetPageSetup(LPDISPATCH newValue);
LPDISPATCH GetShapeRange();
long GetCase();
void SetCase(long nNewValue);
VARIANT GetInformation(long Type);
LPDISPATCH GetReadabilityStatistics();
LPDISPATCH GetGrammaticalErrors();
LPDISPATCH GetSpellingErrors();
long GetOrientation();
void SetOrientation(long nNewValue);
LPDISPATCH GetInlineShapes();
LPDISPATCH GetNextStoryRange();
long GetLanguageIDFarEast();
void SetLanguageIDFarEast(long nNewValue);
long GetLanguageIDOther();
void SetLanguageIDOther(long nNewValue);
void Select();
void SetRange(long Start, long End);
void Collapse(VARIANT* Direction);
void InsertBefore(LPCTSTR Text);
void InsertAfter(LPCTSTR Text);
LPDISPATCH Next(VARIANT* Unit, VARIANT* Count);
LPDISPATCH Previous(VARIANT* Unit, VARIANT* Count);
long StartOf(VARIANT* Unit, VARIANT* Extend);
long EndOf(VARIANT* Unit, VARIANT* Extend);
long Move(VARIANT* Unit, VARIANT* Count);
long MoveStart(VARIANT* Unit, VARIANT* Count);
long MoveEnd(VARIANT* Unit, VARIANT* Count);
long MoveWhile(VARIANT* Cset, VARIANT* Count);
long MoveStartWhile(VARIANT* Cset, VARIANT* Count);
long MoveEndWhile(VARIANT* Cset, VARIANT* Count);
long MoveUntil(VARIANT* Cset, VARIANT* Count);
long MoveStartUntil(VARIANT* Cset, VARIANT* Count);
long MoveEndUntil(VARIANT* Cset, VARIANT* Count);
void Cut();
void Copy();
void Paste();
void InsertBreak(VARIANT* Type);
void InsertFile(LPCTSTR FileName, VARIANT* Range, VARIANT* ConfirmConversions, VARIANT* Link, VARIANT* Attachment);
BOOL InStory(LPDISPATCH Range);
BOOL InRange(LPDISPATCH Range);
long Delete(VARIANT* Unit, VARIANT* Count);
void WholeStory();
long Expand(VARIANT* Unit);
void InsertParagraph();
void InsertParagraphAfter();
void InsertSymbol(long CharacterNumber, VARIANT* Font, VARIANT* Unicode, VARIANT* Bias);
void CopyAsPicture();
void SortAscending();
void SortDescending();
BOOL IsEqual(LPDISPATCH Range);
float Calculate();
LPDISPATCH GoTo(VARIANT* What, VARIANT* Which, VARIANT* Count, VARIANT* Name);
LPDISPATCH GoToNext(long What);
LPDISPATCH GoToPrevious(long What);
void PasteSpecial(VARIANT* IconIndex, VARIANT* Link, VARIANT* Placement, VARIANT* DisplayAsIcon, VARIANT* DataType, VARIANT* IconFileName, VARIANT* IconLabel);
void LookupNameProperties();
long ComputeStatistics(long Statistic);
void Relocate(long Direction);
void CheckSynonyms();
void SubscribeTo(LPCTSTR Edition, VARIANT* Format);
void CreatePublisher(VARIANT* Edition, VARIANT* ContainsPICT, VARIANT* ContainsRTF, VARIANT* ContainsText);
void InsertAutoText();
void InsertDatabase(VARIANT* Format, VARIANT* Style, VARIANT* LinkToSource, VARIANT* Connection, VARIANT* SQLStatement, VARIANT* SQLStatement1, VARIANT* PasswordDocument, VARIANT* PasswordTemplate, VARIANT* WritePasswordDocument,
VARIANT* WritePasswordTemplate, VARIANT* DataSource, VARIANT* From, VARIANT* To, VARIANT* IncludeFields);
void AutoFormat();
void CheckGrammar();
void CheckSpelling(VARIANT* CustomDictionary, VARIANT* IgnoreUppercase, VARIANT* AlwaysSuggest, VARIANT* CustomDictionary2, VARIANT* CustomDictionary3, VARIANT* CustomDictionary4, VARIANT* CustomDictionary5, VARIANT* CustomDictionary6,
VARIANT* CustomDictionary7, VARIANT* CustomDictionary8, VARIANT* CustomDictionary9, VARIANT* CustomDictionary10);
LPDISPATCH GetSpellingSuggestions(VARIANT* CustomDictionary, VARIANT* IgnoreUppercase, VARIANT* MainDictionary, VARIANT* SuggestionMode, VARIANT* CustomDictionary2, VARIANT* CustomDictionary3, VARIANT* CustomDictionary4,
VARIANT* CustomDictionary5, VARIANT* CustomDictionary6, VARIANT* CustomDictionary7, VARIANT* CustomDictionary8, VARIANT* CustomDictionary9, VARIANT* CustomDictionary10);
void InsertParagraphBefore();
void NextSubdocument();
void PreviousSubdocument();
void ConvertHangulAndHanja(VARIANT* ConversionsMode, VARIANT* FastConversion, VARIANT* CheckHangulEnding, VARIANT* EnableRecentOrdering, VARIANT* CustomDictionary);
void PasteAsNestedTable();
void ModifyEnclosure(VARIANT* Style, VARIANT* Symbol, VARIANT* EnclosedText);
void PhoneticGuide(LPCTSTR Text, long Alignment, long Raise, long FontSize, LPCTSTR FontName);
void InsertDateTime(VARIANT* DateTimeFormat, VARIANT* InsertAsField, VARIANT* InsertAsFullWidth, VARIANT* DateLanguage, VARIANT* CalendarType);
void Sort(VARIANT* ExcludeHeader, VARIANT* FieldNumber, VARIANT* SortFieldType, VARIANT* SortOrder, VARIANT* FieldNumber2, VARIANT* SortFieldType2, VARIANT* SortOrder2, VARIANT* FieldNumber3, VARIANT* SortFieldType3, VARIANT* SortOrder3,
VARIANT* SortColumn, VARIANT* Separator, VARIANT* CaseSensitive, VARIANT* BidiSort, VARIANT* IgnoreThe, VARIANT* IgnoreKashida, VARIANT* IgnoreDiacritics, VARIANT* IgnoreHe, VARIANT* LanguageID);
void DetectLanguage();
LPDISPATCH ConvertToTable(VARIANT* Separator, VARIANT* NumRows, VARIANT* NumColumns, VARIANT* InitialColumnWidth, VARIANT* Format, VARIANT* ApplyBorders, VARIANT* ApplyShading, VARIANT* ApplyFont, VARIANT* ApplyColor,
VARIANT* ApplyHeadingRows, VARIANT* ApplyLastRow, VARIANT* ApplyFirstColumn, VARIANT* ApplyLastColumn, VARIANT* AutoFit, VARIANT* AutoFitBehavior, VARIANT* DefaultTableBehavior);
void TCSCConverter(long WdTCSCConverterDirection, BOOL CommonTerms, BOOL UseVariants);
BOOL GetLanguageDetected();
void SetLanguageDetected(BOOL bNewValue);
float GetFitTextWidth();
void SetFitTextWidth(float newValue);
long GetHorizontalInVertical();
void SetHorizontalInVertical(long nNewValue);
long GetTwoLinesInOne();
void SetTwoLinesInOne(long nNewValue);
BOOL GetCombineCharacters();
void SetCombineCharacters(BOOL bNewValue);
long GetNoProofing();
void SetNoProofing(long nNewValue);
LPDISPATCH GetTopLevelTables();
LPDISPATCH GetScripts();
long GetCharacterWidth();
void SetCharacterWidth(long nNewValue);
long GetKana();
void SetKana(long nNewValue);
long GetBoldBi();
void SetBoldBi(long nNewValue);
long GetItalicBi();
void SetItalicBi(long nNewValue);
CString GetId();
void SetId(LPCTSTR lpszNewValue);
LPDISPATCH GetHTMLDivisions();
LPDISPATCH GetSmartTags();
BOOL GetShowAll();
void SetShowAll(BOOL bNewValue);
LPDISPATCH GetDocument();
LPDISPATCH GetFootnoteOptions();
LPDISPATCH GetEndnoteOptions();
void PasteAndFormat(long Type);
void PasteExcelTable(BOOL LinkedToExcel, BOOL WordFormatting, BOOL RTF);
void PasteAppendTable();
LPDISPATCH GetXMLNodes();
LPDISPATCH GetXMLParentNode();
LPDISPATCH GetEditors();
CString GetXml(BOOL DataOnly);
VARIANT GetEnhMetaFileBits();
LPDISPATCH GoToEditableRange(VARIANT* EditorID);
void InsertXML(LPCTSTR XML, VARIANT* Transform);
void InsertCaption(VARIANT* Label, VARIANT* Title, VARIANT* TitleAutoText, VARIANT* Position, VARIANT* ExcludeLabel);
void InsertCrossReference(VARIANT* ReferenceType, long ReferenceKind, VARIANT* ReferenceItem, VARIANT* InsertAsHyperlink, VARIANT* IncludePosition, VARIANT* SeparateNumbers, VARIANT* SeparatorString);
LPDISPATCH GetOMaths();
VARIANT GetCharacterStyle();
VARIANT GetParagraphStyle();
VARIANT GetListStyle();
VARIANT GetTableStyle();
LPDISPATCH GetContentControls();
void ExportFragment(LPCTSTR FileName, long Format);
CString GetWordOpenXML();
void SetListLevel(short Level);
void InsertAlignmentTab(long Alignment, long RelativeTo);
LPDISPATCH GetParentContentControl();
void ImportFragment(LPCTSTR FileName, BOOL MatchDestination);
void ExportAsFixedFormat(LPCTSTR OutputFileName, long ExportFormat, BOOL OpenAfterExport, long OptimizeFor, BOOL ExportCurrentPage, long Item, BOOL IncludeDocProps, BOOL KeepIRM, long CreateBookmarks, BOOL DocStructureTags,
BOOL BitmapMissingFonts, BOOL UseISO19005_1, VARIANT* FixedFormatExtClassPtr);
};
/////////////////////////////////////////////////////////////////////////////
// Table wrapper class
class Table : public COleDispatchDriver
{
public:
Table() {} // Calls COleDispatchDriver default constructor
Table(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
Table(const Table& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
// Attributes
public:
// Operations
public:
LPDISPATCH GetRange();
LPDISPATCH GetApplication();
long GetCreator();
LPDISPATCH GetParent();
LPDISPATCH GetColumns();
LPDISPATCH GetRows();
LPDISPATCH GetBorders();
void SetBorders(LPDISPATCH newValue);
LPDISPATCH GetShading();
BOOL GetUniform();
long GetAutoFormatType();
void Select();
void Delete();
void SortAscending();
void SortDescending();
void AutoFormat(VARIANT* Format, VARIANT* ApplyBorders, VARIANT* ApplyShading, VARIANT* ApplyFont, VARIANT* ApplyColor, VARIANT* ApplyHeadingRows, VARIANT* ApplyLastRow, VARIANT* ApplyFirstColumn, VARIANT* ApplyLastColumn, VARIANT* AutoFit);
void UpdateAutoFormat();
LPDISPATCH Cell(long Row, long Column);
LPDISPATCH Split(VARIANT* BeforeRow);
LPDISPATCH ConvertToText(VARIANT* Separator, VARIANT* NestedTables);
void AutoFitBehavior(long Behavior);
void Sort(VARIANT* ExcludeHeader, VARIANT* FieldNumber, VARIANT* SortFieldType, VARIANT* SortOrder, VARIANT* FieldNumber2, VARIANT* SortFieldType2, VARIANT* SortOrder2, VARIANT* FieldNumber3, VARIANT* SortFieldType3, VARIANT* SortOrder3,
VARIANT* CaseSensitive, VARIANT* BidiSort, VARIANT* IgnoreThe, VARIANT* IgnoreKashida, VARIANT* IgnoreDiacritics, VARIANT* IgnoreHe, VARIANT* LanguageID);
LPDISPATCH GetTables();
long GetNestingLevel();
BOOL GetAllowPageBreaks();
void SetAllowPageBreaks(BOOL bNewValue);
BOOL GetAllowAutoFit();
void SetAllowAutoFit(BOOL bNewValue);
float GetPreferredWidth();
void SetPreferredWidth(float newValue);
long GetPreferredWidthType();
void SetPreferredWidthType(long nNewValue);
float GetTopPadding();
void SetTopPadding(float newValue);
float GetBottomPadding();
void SetBottomPadding(float newValue);
float GetLeftPadding();
void SetLeftPadding(float newValue);
float GetRightPadding();
void SetRightPadding(float newValue);
float GetSpacing();
void SetSpacing(float newValue);
long GetTableDirection();
void SetTableDirection(long nNewValue);
CString GetId();
void SetId(LPCTSTR lpszNewValue);
VARIANT GetStyle();
void SetStyle(VARIANT* newValue);
BOOL GetApplyStyleHeadingRows();
void SetApplyStyleHeadingRows(BOOL bNewValue);
BOOL GetApplyStyleLastRow();
void SetApplyStyleLastRow(BOOL bNewValue);
BOOL GetApplyStyleFirstColumn();
void SetApplyStyleFirstColumn(BOOL bNewValue);
BOOL GetApplyStyleLastColumn();
void SetApplyStyleLastColumn(BOOL bNewValue);
BOOL GetApplyStyleRowBands();
void SetApplyStyleRowBands(BOOL bNewValue);
BOOL GetApplyStyleColumnBands();
void SetApplyStyleColumnBands(BOOL bNewValue);
void ApplyStyleDirectFormatting(LPCTSTR StyleName);
};
/////////////////////////////////////////////////////////////////////////////
// Cell wrapper class
class Cell : public COleDispatchDriver
{
public:
Cell() {} // Calls COleDispatchDriver default constructor
Cell(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
Cell(const Cell& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
// Attributes
public:
// Operations
public:
LPDISPATCH GetRange();
LPDISPATCH GetApplication();
long GetCreator();
LPDISPATCH GetParent();
long GetRowIndex();
long GetColumnIndex();
float GetWidth();
void SetWidth(float newValue);
float GetHeight();
void SetHeight(float newValue);
long GetHeightRule();
void SetHeightRule(long nNewValue);
long GetVerticalAlignment();
void SetVerticalAlignment(long nNewValue);
LPDISPATCH GetColumn();
LPDISPATCH GetRow();
LPDISPATCH GetNext();
LPDISPATCH GetPrevious();
LPDISPATCH GetShading();
LPDISPATCH GetBorders();
void SetBorders(LPDISPATCH newValue);
void Select();
void Delete(VARIANT* ShiftCells);
void Formula(VARIANT* Formula, VARIANT* NumFormat);
void SetWidth(float ColumnWidth, long RulerStyle);
void SetHeight(VARIANT* RowHeight, long HeightRule);
void Merge(LPDISPATCH MergeTo);
void Split(VARIANT* NumRows, VARIANT* NumColumns);
void AutoSum();
LPDISPATCH GetTables();
long GetNestingLevel();
BOOL GetWordWrap();
void SetWordWrap(BOOL bNewValue);
float GetPreferredWidth();
void SetPreferredWidth(float newValue);
BOOL GetFitText();
void SetFitText(BOOL bNewValue);
float GetTopPadding();
void SetTopPadding(float newValue);
float GetBottomPadding();
void SetBottomPadding(float newValue);
float GetLeftPadding();
void SetLeftPadding(float newValue);
float GetRightPadding();
void SetRightPadding(float newValue);
CString GetId();
void SetId(LPCTSTR lpszNewValue);
long GetPreferredWidthType();
void SetPreferredWidthType(long nNewValue);
};
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Template wrapper class
class Template : public COleDispatchDriver
{
public:
Template() {} // Calls COleDispatchDriver default constructor
Template(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
Template(const Template& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
// Attributes
public:
// Operations
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -