///
declare namespace Wps {
interface Application {
readonly Application: Application;
readonly Creator: number;
readonly Parent: TypedIDispatch;
readonly Name: string;
readonly Documents: Documents;
readonly Windows: Windows;
readonly ActiveDocument: Document;
readonly ActiveWindow: Window;
readonly Selection: Selection;
readonly WordBasic: TypedIDispatch;
readonly RecentFiles: RecentFiles;
readonly NormalTemplate: Template;
readonly System: System;
readonly AutoCorrect: AutoCorrect;
readonly FontNames: FontNames;
readonly LandscapeFontNames: FontNames;
readonly PortraitFontNames: FontNames;
readonly Languages: Languages;
readonly Assistant: Kso.Assistant;
readonly Browser: Browser;
readonly FileConverters: FileConverters;
readonly MailingLabel: MailingLabel;
readonly Dialogs: Dialogs;
readonly CaptionLabels: CaptionLabels;
readonly AutoCaptions: AutoCaptions;
readonly AddIns: AddIns;
Visible: boolean;
readonly Version: string;
ScreenUpdating: boolean;
PrintPreview: boolean;
readonly Tasks: Tasks;
DisplayStatusBar: boolean;
readonly SpecialMode: boolean;
readonly UsableWidth: number;
readonly UsableHeight: number;
readonly MathCoprocessorAvailable: boolean;
readonly MouseAvailable: boolean;
International(Index: WdInternationalIndex): TypedAny;
readonly Build: string;
readonly CapsLock: boolean;
readonly NumLock: boolean;
UserName: string;
UserInitials: string;
UserAddress: string;
readonly MacroContainer: TypedIDispatch;
DisplayRecentFiles: boolean;
readonly CommandBars: Kso.CommandBars;
SynonymInfo(Word: string, LanguageID?: any): SynonymInfo;
DefaultSaveFormat: string;
readonly ListGalleries: ListGalleries;
ActivePrinter: string;
readonly Templates: Templates;
CustomizationContext: any;
readonly KeyBindings: KeyBindings;
KeysBoundTo(KeyCategory: WdKeyCategory, Command: string, CommandParameter?: any): KeysBoundTo;
FindKey(KeyCode: number, KeyCode2?: TypedAny): KeyBinding;
Caption: string;
readonly Path: string;
DisplayScrollBars: boolean;
StartupPath: string;
readonly BackgroundSavingStatus: number;
readonly BackgroundPrintingStatus: number;
Left: number;
Top: number;
Width: number;
Height: number;
WindowState: WdWindowState;
DisplayAutoCompleteTips: boolean;
readonly Options: Options;
DisplayAlerts: WdAlertLevel;
readonly CustomDictionaries: Dictionaries;
readonly PathSeparator: string;
set StatusBar(arg1: string);
readonly MAPIAvailable: boolean;
DisplayScreenTips: boolean;
EnableCancelKey: WdEnableCancelKey;
readonly UserControl: boolean;
readonly FileSearch: Kso.FileSearch;
readonly MailSystem: WdMailSystem;
DefaultTableSeparator: string;
ShowVisualBasicEditor: boolean;
BrowseExtraFileTypes: string;
IsObjectValid(Object: any): boolean;
readonly HangulHanjaDictionaries: HangulHanjaConversionDictionaries;
readonly MailMessage: MailMessage;
readonly FocusInMailHeader: boolean;
Quit(SaveChanges?: TypedAny, OriginalFormat?: any, RouteDocument?: any): void;
ScreenRefresh(): void;
PrintOutOld(Background?: TypedAny, Append?: TypedAny, Range?: TypedAny, OutputFileName?: TypedAny, From?: TypedAny, To?: TypedAny, Item?: TypedAny, Copies?: TypedAny, Pages?: TypedAny, PageType?: TypedAny, PrintToFile?: TypedAny, Collate?: TypedAny, FileName?: TypedAny, ActivePrinterMacGX?: any, ManualDuplexPrint?: TypedAny): void;
LookupNameProperties(Name: string): void;
SubstituteFont(UnavailableFont: string, SubstituteFont: string): void;
Repeat(Times?: any): boolean;
DDEExecute(Channel: number, Command: string): void;
DDEInitiate(App: string, Topic: string): number;
DDEPoke(Channel: number, Item: string, Data: string): void;
DDERequest(Channel: number, Item: string): string;
DDETerminate(Channel: number): void;
DDETerminateAll(): void;
BuildKeyCode(Arg1: WdKey, Arg2?: any, Arg3?: any, Arg4?: any): number;
KeyString(KeyCode: number, KeyCode2?: TypedAny): string;
OrganizerCopy(Source: string, Destination: string, Name: string, Object: WdOrganizerObject): void;
OrganizerDelete(Source: string, Name: string, Object: WdOrganizerObject): void;
OrganizerRename(Source: string, Name: string, NewName: string, Object: WdOrganizerObject): void;
AddAddress(TagID: Array, Value: Array): void;
GetAddress(Name?: any, AddressProperties?: any, UseAutoText?: any, DisplaySelectDialog?: any, SelectDialog?: any, CheckNamesDialog?: any, RecentAddressesChoice?: any, UpdateRecentAddresses?: any): string;
CheckGrammar(String: string): boolean;
CheckSpelling(Word: string, CustomDictionary?: any, IgnoreUppercase?: TypedAny, MainDictionary?: any, CustomDictionary2?: any, CustomDictionary3?: any, CustomDictionary4?: any, CustomDictionary5?: any, CustomDictionary6?: any, CustomDictionary7?: any, CustomDictionary8?: any, CustomDictionary9?: any, CustomDictionary10?: any): boolean;
ResetIgnoreAll(): void;
GetSpellingSuggestions(Word: string, CustomDictionary?: any, IgnoreUppercase?: any, MainDictionary?: any, SuggestionMode?: any, CustomDictionary2?: any, CustomDictionary3?: any, CustomDictionary4?: any, CustomDictionary5?: any, CustomDictionary6?: any, CustomDictionary7?: any, CustomDictionary8?: any, CustomDictionary9?: any, CustomDictionary10?: any): SpellingSuggestions;
GoBack(): void;
Help(HelpType: TypedAny): void;
AutomaticChange(): void;
ShowMe(): void;
HelpTool(): void;
NewWindow(): Window;
ListCommands(ListAllCommands: boolean): void;
ShowClipboard(): void;
OnTime(When: TypedAny, Name: string, Tolerance?: TypedAny): void;
NextLetter(): void;
MountVolume(Zone: string, Server: string, Volume: string, User?: any, UserPassword?: any, VolumePassword?: any): number;
CleanString(String: string): string;
SendFax(): void;
ChangeFileOpenDirectory(Path: string): void;
RunOld(MacroName: string): void;
GoForward(): void;
Move(Left: number, Top: number): void;
Resize(Width: number, Height: number): void;
InchesToPoints(Inches: number): number;
CentimetersToPoints(Centimeters: number): number;
MillimetersToPoints(Millimeters: number): number;
PicasToPoints(Picas: number): number;
LinesToPoints(Lines: number): number;
PointsToInches(Points: number): number;
PointsToCentimeters(Points: number): number;
PointsToMillimeters(Points: number): number;
PointsToPicas(Points: number): number;
PointsToLines(Points: number): number;
Activate(): void;
PointsToPixels(Points: number, fVertical?: TypedAny): number;
PixelsToPoints(Pixels: number, fVertical?: TypedAny): number;
KeyboardLatin(): void;
KeyboardBidi(): void;
ToggleKeyboard(): void;
/**
* @param LangId 默认值为 0
*/
Keyboard(LangId?: number): number;
ProductCode(): string;
DefaultWebOptions(): DefaultWebOptions;
DiscussionSupport(Range: any, cid: any, piCSE: any): void;
SetDefaultTheme(Name: string, DocumentType: WdDocumentMedium): void;
GetDefaultTheme(DocumentType: WdDocumentMedium): string;
readonly EmailOptions: EmailOptions;
readonly Language: Kso.MsoLanguageID;
readonly COMAddIns: Kso.COMAddIns;
CheckLanguage: boolean;
readonly LanguageSettings: Kso.LanguageSettings;
readonly Dummy1: boolean;
readonly AnswerWizard: Kso.AnswerWizard;
FeatureInstall: Kso.MsoFeatureInstall;
PrintOut2000(Background?: TypedAny, Append?: TypedAny, Range?: TypedAny, OutputFileName?: TypedAny, From?: TypedAny, To?: TypedAny, Item?: TypedAny, Copies?: TypedAny, Pages?: TypedAny, PageType?: TypedAny, PrintToFile?: TypedAny, Collate?: TypedAny, FileName?: TypedAny, ActivePrinterMacGX?: any, ManualDuplexPrint?: TypedAny, PrintZoomColumn?: TypedAny, PrintZoomRow?: TypedAny, PrintZoomPaperWidth?: TypedAny, PrintZoomPaperHeight?: TypedAny): void;
Run(MacroName: string, varg1?: any, varg2?: any, varg3?: any, varg4?: any, varg5?: any, varg6?: any, varg7?: any, varg8?: any, varg9?: any, varg10?: any, varg11?: any, varg12?: any, varg13?: any, varg14?: any, varg15?: any, varg16?: any, varg17?: any, varg18?: any, varg19?: any, varg20?: any, varg21?: any, varg22?: any, varg23?: any, varg24?: any, varg25?: any, varg26?: any, varg27?: any, varg28?: any, varg29?: any, varg30?: any): TypedAny;
PrintOut(Background?: TypedAny, Append?: TypedAny, Range?: TypedAny, OutputFileName?: TypedAny, From?: TypedAny, To?: TypedAny, Item?: TypedAny, Copies?: TypedAny, Pages?: TypedAny, PageType?: TypedAny, PrintToFile?: TypedAny, Collate?: TypedAny, FileName?: TypedAny, ActivePrinterMacGX?: any, ManualDuplexPrint?: TypedAny, PrintZoomColumn?: TypedAny, PrintZoomRow?: TypedAny, PrintZoomPaperWidth?: TypedAny, PrintZoomPaperHeight?: TypedAny): void;
AutomationSecurity: Kso.MsoAutomationSecurity;
FileDialog(FileDialogType: Kso.MsoFileDialogType): Kso.FileDialog;
EmailTemplate: string;
ShowWindowsInTaskbar: boolean;
readonly NewDocument: Kso.NewFile;
ShowStartupDialog: boolean;
readonly AutoCorrectEmail: AutoCorrect;
readonly TaskPanes: TaskPanes;
DefaultLegalBlackline: boolean;
Dummy2(): boolean;
readonly SmartTagRecognizers: SmartTagRecognizers;
readonly SmartTagTypes: SmartTagTypes;
readonly XMLNamespaces: XMLNamespaces;
PutFocusInMailHeader(): void;
readonly ArbitraryXMLSupportAvailable: boolean;
readonly BuildFull: string;
readonly BuildFeatureCrew: string;
LoadMasterList(FileName: string): void;
/**
* @param Destination 默认值为 2
* @param Granularity 默认值为 1
* @param CompareFormatting 默认值为 true
* @param CompareCaseChanges 默认值为 true
* @param CompareWhitespace 默认值为 true
* @param CompareTables 默认值为 true
* @param CompareHeaders 默认值为 true
* @param CompareFootnotes 默认值为 true
* @param CompareTextboxes 默认值为 true
* @param CompareFields 默认值为 true
* @param CompareComments 默认值为 true
* @param CompareMoves 默认值为 true
* @param RevisedAuthor 默认值为 ""
* @param IgnoreAllComparisonWarnings 默认值为 false
*/
CompareDocuments(OriginalDocument: Document, RevisedDocument: Document, Destination?: WdCompareDestination, Granularity?: WdGranularity, CompareFormatting?: boolean, CompareCaseChanges?: boolean, CompareWhitespace?: boolean, CompareTables?: boolean, CompareHeaders?: boolean, CompareFootnotes?: boolean, CompareTextboxes?: boolean, CompareFields?: boolean, CompareComments?: boolean, CompareMoves?: boolean, RevisedAuthor?: string, IgnoreAllComparisonWarnings?: boolean): Document;
/**
* @param Destination 默认值为 2
* @param Granularity 默认值为 1
* @param CompareFormatting 默认值为 true
* @param CompareCaseChanges 默认值为 true
* @param CompareWhitespace 默认值为 true
* @param CompareTables 默认值为 true
* @param CompareHeaders 默认值为 true
* @param CompareFootnotes 默认值为 true
* @param CompareTextboxes 默认值为 true
* @param CompareFields 默认值为 true
* @param CompareComments 默认值为 true
* @param CompareMoves 默认值为 true
* @param OriginalAuthor 默认值为 ""
* @param RevisedAuthor 默认值为 ""
* @param FormatFrom 默认值为 2
*/
MergeDocuments(OriginalDocument: Document, RevisedDocument: Document, Destination?: WdCompareDestination, Granularity?: WdGranularity, CompareFormatting?: boolean, CompareCaseChanges?: boolean, CompareWhitespace?: boolean, CompareTables?: boolean, CompareHeaders?: boolean, CompareFootnotes?: boolean, CompareTextboxes?: boolean, CompareFields?: boolean, CompareComments?: boolean, CompareMoves?: boolean, OriginalAuthor?: string, RevisedAuthor?: string, FormatFrom?: WdMergeFormatFrom): Document;
readonly Bibliography: Bibliography;
ShowStylePreviews: boolean;
RestrictLinkedStyles: boolean;
readonly OMathAutoCorrect: OMathAutoCorrect;
DisplayDocumentInformationPanel: boolean;
readonly Assistance: Kso.Assistance;
OpenAttachmentsInFullScreen: boolean;
readonly ActiveEncryptionSession: number;
DontResetInsertionPointProperties: boolean;
readonly SmartArtLayouts: Kso.SmartArtLayouts;
readonly SmartArtQuickStyles: Kso.SmartArtQuickStyles;
readonly SmartArtColors: Kso.SmartArtColors;
ThreeWayMerge(LocalDocument: Document, ServerDocument: Document, BaseDocument: Document, FavorSource: boolean): void;
Dummy4(): void;
readonly UndoRecord: UndoRecord;
readonly PickerDialog: Kso.PickerDialog;
readonly ProtectedViewWindows: ProtectedViewWindows;
readonly ActiveProtectedViewWindow: ProtectedViewWindow;
readonly IsSandboxed: boolean;
FileValidation: Kso.MsoFileValidationMode;
ChartDataPointTrack: boolean;
ShowAnimation: boolean;
readonly OfdExportOptions: OfdExportOptions;
readonly PdfExportOptions: PdfExportOptions;
}
interface Document {
readonly Name: string;
readonly Application: Application;
readonly Creator: number;
readonly Parent: any;
readonly BuiltInDocumentProperties: TypedIDispatch;
readonly CustomDocumentProperties: TypedIDispatch;
readonly Path: string;
readonly Bookmarks: Bookmarks;
readonly Tables: Tables;
readonly Footnotes: Footnotes;
readonly Endnotes: Endnotes;
readonly Comments: Comments;
readonly Type: WdDocumentType;
AutoHyphenation: boolean;
HyphenateCaps: boolean;
HyphenationZone: number;
ConsecutiveHyphensLimit: number;
readonly Sections: Sections;
readonly Paragraphs: Paragraphs;
readonly Words: Words;
readonly Sentences: Sentences;
readonly Characters: Characters;
readonly Fields: Fields;
readonly FormFields: FormFields;
readonly Styles: Styles;
readonly Frames: Frames;
readonly TablesOfFigures: TablesOfFigures;
readonly Variables: Variables;
readonly MailMerge: MailMerge;
readonly Envelope: Envelope;
readonly FullName: string;
readonly Revisions: Revisions;
readonly TablesOfContents: TablesOfContents;
readonly TablesOfAuthorities: TablesOfAuthorities;
PageSetup: PageSetup;
readonly Windows: Windows;
HasRoutingSlip: boolean;
readonly RoutingSlip: RoutingSlip;
readonly Routed: boolean;
readonly TablesOfAuthoritiesCategories: TablesOfAuthoritiesCategories;
readonly Indexes: Indexes;
Saved: boolean;
readonly Content: Range;
readonly ActiveWindow: Window;
Kind: WdDocumentKind;
readonly ReadOnly: boolean;
readonly Subdocuments: Subdocuments;
readonly IsMasterDocument: boolean;
DefaultTabStop: number;
EmbedTrueTypeFonts: boolean;
SaveFormsData: boolean;
ReadOnlyRecommended: boolean;
SaveSubsetFonts: boolean;
Compatibility(Type: WdCompatibility, prop: boolean): void;
Compatibility(Type: WdCompatibility): boolean;
readonly StoryRanges: StoryRanges;
readonly CommandBars: Kso.CommandBars;
readonly IsSubdocument: boolean;
readonly SaveFormat: number;
readonly ProtectionType: WdProtectionType;
readonly Hyperlinks: Hyperlinks;
readonly Shapes: Shapes;
readonly ListTemplates: ListTemplates;
readonly Lists: Lists;
UpdateStylesOnOpen: boolean;
AttachedTemplate: TypedAny;
readonly InlineShapes: InlineShapes;
Background: Shape;
GrammarChecked: boolean;
SpellingChecked: boolean;
ShowGrammaticalErrors: boolean;
ShowSpellingErrors: boolean;
readonly Versions: Versions;
ShowSummary: boolean;
SummaryViewMode: WdSummaryMode;
SummaryLength: number;
PrintFractionalWidths: boolean;
PrintPostScriptOverText: boolean;
readonly Container: TypedIDispatch;
PrintFormsData: boolean;
readonly ListParagraphs: ListParagraphs;
set Password(arg1: string);
set WritePassword(arg1: string);
readonly HasPassword: boolean;
readonly WriteReserved: boolean;
ActiveWritingStyle(LanguageID: TypedAny, prop: string): void;
ActiveWritingStyle(LanguageID: TypedAny): string;
UserControl: boolean;
HasMailer: boolean;
readonly Mailer: Mailer;
readonly ReadabilityStatistics: ReadabilityStatistics;
readonly GrammaticalErrors: ProofreadingErrors;
readonly SpellingErrors: ProofreadingErrors;
readonly FormsDesign: boolean;
_CodeName: string;
readonly CodeName: string;
SnapToGrid: boolean;
SnapToShapes: boolean;
GridDistanceHorizontal: number;
GridDistanceVertical: number;
GridOriginHorizontal: number;
GridOriginVertical: number;
GridSpaceBetweenHorizontalLines: number;
GridSpaceBetweenVerticalLines: number;
GridOriginFromMargin: boolean;
KerningByAlgorithm: boolean;
JustificationMode: WdJustificationMode;
FarEastLineBreakLevel: WdFarEastLineBreakLevel;
NoLineBreakBefore: string;
NoLineBreakAfter: string;
TrackRevisions: boolean;
PrintRevisions: boolean;
ShowRevisions: boolean;
Close(SaveChanges?: TypedAny, OriginalFormat?: TypedAny, RouteDocument?: TypedAny): void;
SaveAs2000(FileName?: TypedAny, FileFormat?: TypedAny, LockComments?: TypedAny, Password?: TypedAny, AddToRecentFiles?: TypedAny, WritePassword?: TypedAny, ReadOnlyRecommended?: TypedAny, EmbedTrueTypeFonts?: TypedAny, SaveNativePictureFormat?: TypedAny, SaveFormsData?: TypedAny, SaveAsAOCELetter?: TypedAny): void;
Repaginate(): void;
FitToPages(): void;
ManualHyphenation(): void;
Select(): void;
DataForm(): void;
Route(): void;
Save(): void;
PrintOutOld(Background?: TypedAny, Append?: TypedAny, Range?: TypedAny, OutputFileName?: TypedAny, From?: TypedAny, To?: TypedAny, Item?: TypedAny, Copies?: TypedAny, Pages?: TypedAny, PageType?: TypedAny, PrintToFile?: TypedAny, Collate?: TypedAny, ActivePrinterMacGX?: any, ManualDuplexPrint?: TypedAny): void;
SendMail(): void;
Range(Start?: TypedAny, End?: TypedAny): Range;
RunAutoMacro(Which: WdAutoMacros): void;
Activate(): void;
PrintPreview(): void;
GoTo(What?: TypedAny, Which?: TypedAny, Count?: TypedAny, Name?: TypedAny): Range;
Undo(Times?: TypedAny): boolean;
Redo(Times?: TypedAny): boolean;
ComputeStatistics(Statistic: WdStatistic, IncludeFootnotesAndEndnotes?: TypedAny): number;
MakeCompatibilityDefault(): void;
Protect2002(Type: WdProtectionType, NoReset?: TypedAny, Password?: TypedAny): void;
Unprotect(Password?: TypedAny): void;
EditionOptions(Type: WdEditionType, Option: WdEditionOption, Name: string, Format?: any): void;
RunLetterWizard(LetterContent?: any, WizardMode?: any): void;
GetLetterContent(): LetterContent;
SetLetterContent(LetterContent: any): void;
CopyStylesFromTemplate(Template: string): void;
UpdateStyles(): void;
CheckGrammar(): void;
CheckSpelling(CustomDictionary?: TypedAny, IgnoreUppercase?: TypedAny, AlwaysSuggest?: TypedAny, CustomDictionary2?: TypedAny, CustomDictionary3?: TypedAny, CustomDictionary4?: TypedAny, CustomDictionary5?: TypedAny, CustomDictionary6?: TypedAny, CustomDictionary7?: TypedAny, CustomDictionary8?: TypedAny, CustomDictionary9?: TypedAny, CustomDictionary10?: TypedAny): void;
FollowHyperlink(Address?: TypedAny, SubAddress?: TypedAny, NewWindow?: any, AddHistory?: any, ExtraInfo?: any, Method?: any, HeaderInfo?: any): void;
AddToFavorites(): void;
Reload(): void;
AutoSummarize(Length?: any, Mode?: any, UpdateProperties?: any): Range;
RemoveNumbers(NumberType?: any): void;
ConvertNumbersToText(NumberType?: any): void;
CountNumberedItems(NumberType?: any, Level?: any): number;
Post(): void;
ToggleFormsDesign(): void;
Compare2000(Name: string): void;
UpdateSummaryProperties(): void;
GetCrossReferenceItems(ReferenceType: TypedAny): TypedAny;
AutoFormat(): void;
ViewCode(): void;
ViewPropertyBrowser(): void;
ForwardMailer(): void;
Reply(): void;
ReplyAll(): void;
SendMailer(FileFormat?: any, Priority?: any): void;
UndoClear(): void;
PresentIt(): void;
SendFax(Address: string, Subject?: any): void;
Merge2000(FileName: string): void;
ClosePrintPreview(): void;
CheckConsistency(): void;
CreateLetterContent(DateFormat: string, IncludeHeaderFooter: boolean, PageDesign: string, LetterStyle: WdLetterStyle, Letterhead: boolean, LetterheadLocation: WdLetterheadLocation, LetterheadSize: number, RecipientName: string, RecipientAddress: string, Salutation: string, SalutationType: WdSalutationType, RecipientReference: string, MailingInstructions: string, AttentionLine: string, Subject: string, CCList: string, ReturnAddress: string, SenderName: string, Closing: string, SenderCompany: string, SenderJobTitle: string, SenderInitials: string, EnclosureNumber: number, InfoBlock?: any, RecipientCode?: any, RecipientGender?: any, ReturnAddressShortForm?: any, SenderCity?: any, SenderCode?: any, SenderGender?: any, SenderReference?: any): LetterContent;
AcceptAllRevisions(): void;
RejectAllRevisions(): void;
DetectLanguage(): void;
ApplyTheme(Name: string): void;
RemoveTheme(): void;
WebPagePreview(): void;
ReloadAs(Encoding: Kso.MsoEncoding): void;
readonly ActiveTheme: string;
readonly ActiveThemeDisplayName: string;
readonly Email: Email;
readonly Scripts: Kso.Scripts;
LanguageDetected: boolean;
FarEastLineBreakLanguage: WdFarEastLineBreakLanguageID;
readonly Frameset: Frameset;
ClickAndTypeParagraphStyle: TypedAny;
readonly HTMLProject: Kso.HTMLProject;
readonly WebOptions: WebOptions;
readonly OpenEncoding: Kso.MsoEncoding;
SaveEncoding: Kso.MsoEncoding;
OptimizeForWord97: boolean;
readonly VBASigned: boolean;
PrintOut2000(Background?: TypedAny, Append?: TypedAny, Range?: TypedAny, OutputFileName?: TypedAny, From?: TypedAny, To?: TypedAny, Item?: TypedAny, Copies?: TypedAny, Pages?: TypedAny, PageType?: TypedAny, PrintToFile?: TypedAny, Collate?: TypedAny, ActivePrinterMacGX?: any, ManualDuplexPrint?: TypedAny, PrintZoomColumn?: TypedAny, PrintZoomRow?: TypedAny, PrintZoomPaperWidth?: TypedAny, PrintZoomPaperHeight?: TypedAny): void;
sblt(s: string): void;
ConvertVietDoc(CodePageOrigin: number): void;
PrintOut(Background?: TypedAny, Append?: TypedAny, Range?: TypedAny, OutputFileName?: TypedAny, From?: TypedAny, To?: TypedAny, Item?: TypedAny, Copies?: TypedAny, Pages?: TypedAny, PageType?: TypedAny, PrintToFile?: TypedAny, Collate?: TypedAny, ActivePrinterMacGX?: any, ManualDuplexPrint?: TypedAny, PrintZoomColumn?: TypedAny, PrintZoomRow?: TypedAny, PrintZoomPaperWidth?: TypedAny, PrintZoomPaperHeight?: TypedAny): void;
readonly MailEnvelope: Kso.MsoEnvelope;
DisableFeatures: boolean;
DoNotEmbedSystemFonts: boolean;
readonly Signatures: Kso.SignatureSet;
DefaultTargetFrame: string;
readonly HTMLDivisions: HTMLDivisions;
DisableFeaturesIntroducedAfter: WdDisableFeaturesIntroducedAfter;
RemovePersonalInformation: boolean;
readonly SmartTags: SmartTags;
Compare2002(Name: string, AuthorName?: any, CompareTarget?: any, DetectFormatChanges?: any, IgnoreAllComparisonWarnings?: any, AddToRecentFiles?: any): void;
/**
* @param SaveChanges 默认值为 true
* @param MakePublic 默认值为 false
*/
CheckIn(SaveChanges?: boolean, Comments?: any, MakePublic?: boolean): void;
CanCheckin(): boolean;
Merge(FileName: string, MergeTarget?: TypedAny, DetectFormatChanges?: any, UseFormattingFrom?: any, AddToRecentFiles?: any): void;
EmbedSmartTags: boolean;
SmartTagsAsXMLProps: boolean;
TextEncoding: Kso.MsoEncoding;
TextLineEnding: WdLineEndingType;
SendForReview(Recipients?: any, Subject?: any, ShowMessage?: any, IncludeAttachment?: any): void;
ReplyWithChanges(ShowMessage?: any): void;
EndReview(): void;
readonly StyleSheets: StyleSheets;
readonly DefaultTableStyle: any;
readonly PasswordEncryptionProvider: string;
readonly PasswordEncryptionAlgorithm: string;
readonly PasswordEncryptionKeyLength: number;
readonly PasswordEncryptionFileProperties: boolean;
SetPasswordEncryptionOptions(PasswordEncryptionProvider: string, PasswordEncryptionAlgorithm: string, PasswordEncryptionKeyLength: number, PasswordEncryptionFileProperties?: TypedAny): void;
RecheckSmartTags(): void;
RemoveSmartTags(): void;
SetDefaultTableStyle(Style: any, SetInTemplate: boolean): void;
DeleteAllComments(): void;
AcceptAllRevisionsShown(): void;
RejectAllRevisionsShown(): void;
DeleteAllCommentsShown(): void;
ResetFormFields(): void;
SaveAs(FileName?: TypedAny, FileFormat?: TypedAny, LockComments?: TypedAny, Password?: TypedAny, AddToRecentFiles?: TypedAny, WritePassword?: TypedAny, ReadOnlyRecommended?: TypedAny, EmbedTrueTypeFonts?: TypedAny, SaveNativePictureFormat?: TypedAny, SaveFormsData?: TypedAny, SaveAsAOCELetter?: TypedAny, Encoding?: TypedAny, InsertLineBreaks?: TypedAny, AllowSubstitutions?: TypedAny, LineEnding?: TypedAny, AddBiDiMarks?: TypedAny): void;
EmbedLinguisticData: boolean;
FormattingShowFont: boolean;
FormattingShowClear: boolean;
FormattingShowParagraph: boolean;
FormattingShowNumbering: boolean;
FormattingShowFilter: WdShowFilter;
CheckNewSmartTags(): void;
readonly Permission: Kso.Permission;
readonly XMLNodes: XMLNodes;
readonly XMLSchemaReferences: XMLSchemaReferences;
readonly SmartDocument: Kso.SmartDocument;
readonly SharedWorkspace: Kso.SharedWorkspace;
readonly Sync: Kso.Sync;
EnforceStyle: boolean;
AutoFormatOverride: boolean;
XMLSaveDataOnly: boolean;
XMLHideNamespaces: boolean;
XMLShowAdvancedErrors: boolean;
XMLUseXSLTWhenSaving: boolean;
XMLSaveThroughXSLT: string;
readonly DocumentLibraryVersions: Kso.DocumentLibraryVersions;
ReadingModeLayoutFrozen: boolean;
RemoveDateAndTime: boolean;
SendFaxOverInternet(Recipients?: any, Subject?: any, ShowMessage?: any): void;
/**
* @param DataOnly 默认值为 true
*/
TransformDocument(Path: string, DataOnly?: boolean): void;
Protect(Type: WdProtectionType, NoReset?: TypedAny, Password?: TypedAny, UseIRM?: TypedAny, EnforceStyleLock?: TypedAny): void;
SelectAllEditableRanges(EditorID?: TypedAny): void;
DeleteAllEditableRanges(EditorID?: TypedAny): void;
DeleteAllInkAnnotations(): void;
AddDocumentWorkspaceHeader(RichFormat: boolean, Url: string, Title: string, Description: string, ID: string): void;
RemoveDocumentWorkspaceHeader(ID: string): void;
Compare(Name: string, AuthorName?: TypedAny, CompareTarget?: TypedAny, DetectFormatChanges?: any, IgnoreAllComparisonWarnings?: TypedAny, AddToRecentFiles?: any, RemovePersonalInformation?: any, RemoveDateAndTime?: any): void;
RemoveLockedStyles(): void;
readonly ChildNodeSuggestions: XMLChildNodeSuggestions;
/**
* @param PrefixMapping 默认值为 ""
* @param FastSearchSkippingTextNodes 默认值为 true
*/
SelectSingleNode(XPath: string, PrefixMapping?: string, FastSearchSkippingTextNodes?: boolean): XMLNode;
/**
* @param PrefixMapping 默认值为 ""
* @param FastSearchSkippingTextNodes 默认值为 true
*/
SelectNodes(XPath: string, PrefixMapping?: string, FastSearchSkippingTextNodes?: boolean): XMLNodes;
readonly XMLSchemaViolations: XMLNodes;
ReadingLayoutSizeX: number;
ReadingLayoutSizeY: number;
StyleSortMethod: WdStyleSort;
readonly ContentTypeProperties: Kso.MetaProperties;
TrackMoves: boolean;
TrackFormatting: boolean;
readonly Dummy1: void;
readonly OMaths: OMaths;
RemoveDocumentInformation(RemoveDocInfoType: WdRemoveDocInfoType): void;
/**
* @param SaveChanges 默认值为 true
* @param MakePublic 默认值为 false
*/
CheckInWithVersion(SaveChanges?: boolean, Comments?: any, MakePublic?: boolean, VersionType?: any): void;
Dummy2(): void;
readonly Dummy3: void;
readonly ServerPolicy: Kso.ServerPolicy;
readonly ContentControls: ContentControls;
readonly DocumentInspectors: Kso.DocumentInspectors;
LockServerFile(): void;
GetWorkflowTasks(): Kso.WorkflowTasks;
GetWorkflowTemplates(): Kso.WorkflowTemplates;
Dummy4(): void;
AddMeetingWorkspaceHeader(SkipIfAbsent: boolean, Url: string, Title: string, Description: string, ID: string): void;
readonly Bibliography: Bibliography;
LockTheme: boolean;
LockQuickStyleSet: boolean;
readonly OriginalDocumentTitle: string;
readonly RevisedDocumentTitle: string;
readonly CustomXMLParts: Kso.CustomXMLParts;
FormattingShowNextLevel: boolean;
FormattingShowUserStyleName: boolean;
SaveAsQuickStyleSet(FileName: string): void;
ApplyQuickStyleSet(Name: string): void;
readonly Research: Research;
Final: boolean;
OMathBreakBin: WdOMathBreakBin;
OMathBreakSub: WdOMathBreakSub;
OMathJc: WdOMathJc;
OMathLeftMargin: number;
OMathRightMargin: number;
OMathWrap: number;
OMathIntSubSupLim: boolean;
OMathNarySupSubLim: boolean;
OMathSmallFrac: boolean;
readonly WordOpenXML: string;
readonly DocumentTheme: Kso.OfficeTheme;
ApplyDocumentTheme(FileName: string): void;
readonly HasVBProject: boolean;
SelectLinkedControls(Node: Kso.CustomXMLNode): ContentControls;
/**
* @param Stream 默认值为 null
*/
SelectUnlinkedControls(Stream?: Kso.CustomXMLPart): ContentControls;
SelectContentControlsByTitle(Title: string): ContentControls;
/**
* @param OpenAfterExport 默认值为 false
* @param OptimizeFor 默认值为 0
* @param Range 默认值为 0
* @param From 默认值为 1
* @param To 默认值为 1
* @param Item 默认值为 0
* @param IncludeDocProps 默认值为 false
* @param KeepIRM 默认值为 true
* @param CreateBookmarks 默认值为 0
* @param DocStructureTags 默认值为 true
* @param BitmapMissingFonts 默认值为 true
* @param UseISO19005_1 默认值为 false
*/
ExportAsFixedFormat(OutputFileName: string, ExportFormat: WdExportFormat, OpenAfterExport?: boolean, OptimizeFor?: WdExportOptimizeFor, Range?: WdExportRange, From?: number, To?: number, Item?: WdExportItem, IncludeDocProps?: boolean, KeepIRM?: boolean, CreateBookmarks?: WdExportCreateBookmarks, DocStructureTags?: boolean, BitmapMissingFonts?: boolean, UseISO19005_1?: boolean, FixedFormatExtClassPtr?: TypedAny): void;
FreezeLayout(): void;
UnfreezeLayout(): void;
OMathFontName: string;
DowngradeDocument(): void;
EncryptionProvider: string;
UseMathDefaults: boolean;
readonly CurrentRsid: number;
Convert(): void;
SelectContentControlsByTag(Tag: string): ContentControls;
ConvertAutoHyphens(): void;
readonly DocID: number;
ApplyQuickStyleSet2(Style: any): void;
readonly CompatibilityMode: number;
SaveAs2(FileName?: TypedAny, FileFormat?: TypedAny, LockComments?: TypedAny, Password?: TypedAny, AddToRecentFiles?: TypedAny, WritePassword?: TypedAny, ReadOnlyRecommended?: TypedAny, EmbedTrueTypeFonts?: TypedAny, SaveNativePictureFormat?: TypedAny, SaveFormsData?: TypedAny, SaveAsAOCELetter?: TypedAny, Encoding?: TypedAny, InsertLineBreaks?: TypedAny, AllowSubstitutions?: TypedAny, LineEnding?: TypedAny, AddBiDiMarks?: TypedAny, CompatibilityMode?: TypedAny): void;
readonly CoAuthoring: CoAuthoring;
SetCompatibilityMode(Mode: number): void;
readonly Broadcast: Broadcast;
ReturnToLastReadPosition(): number;
ChartDataPointTrack: boolean;
readonly IsInAutosave: boolean;
SaveCopyAs(FileName?: any, FileFormat?: any, LockComments?: any, Password?: any, AddToRecentFiles?: any, WritePassword?: any, ReadOnlyRecommended?: any, EmbedTrueTypeFonts?: any, SaveNativePictureFormat?: any, SaveFormsData?: any, SaveAsAOCELetter?: any, Encoding?: any, InsertLineBreaks?: any, AllowSubstitutions?: any, LineEnding?: any, AddBiDiMarks?: any, CompatibilityMode?: any): void;
readonly DocumentFields: DocumentFields;
}
interface Bookmarks {
readonly Count: number;
DefaultSorting: WdBookmarkSortBy;
ShowHidden: boolean;
readonly Application: Application;
readonly Creator: number;
readonly Parent: any;
Item(Index: TypedAny): Bookmark;
Add(Name: string, Range?: TypedAny): Bookmark;
Exists(Name: string): boolean;
}
interface Bookmark {
readonly Name: string;
readonly Range: Range;
readonly Empty: boolean;
Start: number;
End: number;
readonly Column: boolean;
readonly StoryType: WdStoryType;
readonly Application: Application;
readonly Creator: number;
readonly Parent: any;
Select(): void;
Delete(): void;
Copy(Name: string): Bookmark;
}
interface Range {
Text: string;
FormattedText: Range;
Start: number;
End: number;
Font: Font;
readonly Duplicate: Range;
readonly StoryType: WdStoryType;
readonly Tables: Tables;
readonly Words: Words;
readonly Sentences: Sentences;
readonly Characters: Characters;
readonly Footnotes: Footnotes;
readonly Endnotes: Endnotes;
readonly Comments: Comments;
readonly Cells: Cells;
readonly Sections: Sections;
readonly Paragraphs: Paragraphs;
Borders: Borders;
readonly Shading: Shading;
TextRetrievalMode: TextRetrievalMode;
readonly Fields: Fields;
readonly FormFields: FormFields;
readonly Frames: Frames;
ParagraphFormat: ParagraphFormat;
readonly ListFormat: ListFormat;
readonly Bookmarks: Bookmarks;
readonly Application: Application;
readonly Creator: number;
readonly Parent: any;
Bold: number;
Italic: number;
Underline: WdUnderline;
EmphasisMark: WdEmphasisMark;
DisableCharacterSpaceGrid: boolean;
readonly Revisions: Revisions;
Style: TypedAny