wpp-jsapi-declare
Version:
2,728 lines (1,533 loc) • 155 kB
TypeScript
/// <reference path="lib.kso.d.ts" />
declare namespace Wpp {
interface Collection {
readonly Count: number;
}
interface Application {
readonly Presentations: Presentations;
readonly Windows: DocumentWindows;
readonly Dialogs: any;
readonly ActiveWindow: DocumentWindow;
readonly ActivePresentation: Presentation;
readonly SlideShowWindows: SlideShowWindows;
readonly CommandBars: Kso.CommandBars;
readonly Path: string;
readonly Name: string;
Caption: string;
readonly Assistant: Kso.Assistant;
readonly FileSearch: Kso.FileSearch;
readonly FileFind: Kso.Find;
readonly Build: string;
readonly Version: string;
readonly OperatingSystem: string;
readonly ActivePrinter: string;
readonly Creator: number;
readonly AddIns: AddIns;
/**
* @param HelpFile 默认值为 "vbapp10.chm"
* @param ContextID 默认值为 0
*/
Help(HelpFile?: string, ContextID?: number): void;
Quit(): void;
Run(MacroName: string, safeArrayOfParams: Array<any>): any;
PPFileDialog(Type: PpFileDialogType): any;
Left: number;
Top: number;
Width: number;
Height: number;
WindowState: PpWindowState;
Visible: Kso.MsoTriState;
readonly Active: Kso.MsoTriState;
Activate(): void;
readonly AnswerWizard: Kso.AnswerWizard;
readonly COMAddIns: Kso.COMAddIns;
readonly ProductCode: string;
readonly DefaultWebOptions: DefaultWebOptions;
readonly LanguageSettings: Kso.LanguageSettings;
readonly MsoDebugOptions: Kso.MsoDebugOptions;
ShowWindowsInTaskbar: Kso.MsoTriState;
readonly Marker: any;
FeatureInstall: Kso.MsoFeatureInstall;
/**
* @param Persist 默认值为 false
*/
GetOptionFlag(Option: number, Persist?: boolean): boolean;
/**
* @param Persist 默认值为 false
*/
SetOptionFlag(Option: number, State: boolean, Persist?: boolean): void;
FileDialog(Type: Kso.MsoFileDialogType): Kso.FileDialog;
DisplayGridLines: Kso.MsoTriState;
AutomationSecurity: Kso.MsoAutomationSecurity;
readonly NewPresentation: Kso.NewFile;
DisplayAlerts: PpAlertLevel;
ShowStartupDialog: Kso.MsoTriState;
SetPerfMarker(Marker: number): void;
readonly AutoCorrect: AutoCorrect;
readonly Options: Options;
LaunchPublishSlidesDialog(SlideLibraryUrl: string): void;
LaunchSendToPPTDialog(SlideUrls: any): void;
DisplayDocumentInformationPanel: boolean;
readonly Assistance: Kso.Assistance;
readonly ActiveEncryptionSession: number;
readonly FileConverters: FileConverters;
readonly SmartArtLayouts: Kso.SmartArtLayouts;
readonly SmartArtQuickStyles: Kso.SmartArtQuickStyles;
readonly SmartArtColors: Kso.SmartArtColors;
readonly ProtectedViewWindows: ProtectedViewWindows;
readonly ActiveProtectedViewWindow: ProtectedViewWindow;
readonly IsSandboxed: boolean;
readonly ResampleMediaTasks: ResampleMediaTasks;
StartNewUndoEntry(): void;
FileValidation: Kso.MsoFileValidationMode;
OpenThemeFile(themeFileName: string): Theme;
ChartDataPointTrack: boolean;
DisplayGuides: Kso.MsoTriState;
}
interface Presentations {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
Item(Index: any): Presentation;
/**
* @param WithWindow 默认值为 -1
*/
Add(WithWindow?: Kso.MsoTriState): Presentation;
/**
* @param ReadOnly 默认值为 0
* @param Untitled 默认值为 0
* @param WithWindow 默认值为 -1
*/
OpenOld(FileName: string, ReadOnly?: Kso.MsoTriState, Untitled?: Kso.MsoTriState, WithWindow?: Kso.MsoTriState): Presentation;
/**
* @param ReadOnly 默认值为 0
* @param Untitled 默认值为 0
* @param WithWindow 默认值为 -1
*/
Open(FileName: string, ReadOnly?: Kso.MsoTriState, Untitled?: Kso.MsoTriState, WithWindow?: Kso.MsoTriState): Presentation;
CheckOut(FileName: string): void;
CanCheckOut(FileName: string): boolean;
/**
* @param ReadOnly 默认值为 0
* @param Untitled 默认值为 0
* @param WithWindow 默认值为 -1
* @param OpenAndRepair 默认值为 0
*/
Open2007(FileName: string, ReadOnly?: Kso.MsoTriState, Untitled?: Kso.MsoTriState, WithWindow?: Kso.MsoTriState, OpenAndRepair?: Kso.MsoTriState): Presentation;
}
interface Selection {
readonly Application: Application;
readonly Parent: any;
Cut(): void;
Copy(): void;
Delete(): void;
Unselect(): void;
readonly Type: PpSelectionType;
readonly SlideRange: SlideRange;
readonly ShapeRange: ShapeRange;
readonly TextRange: TextRange;
readonly ChildShapeRange: ShapeRange;
readonly HasChildShapeRange: boolean;
readonly TextRange2: Kso.TextRange2;
}
interface SlideRange {
readonly Application: Application;
readonly Parent: any;
readonly Shapes: Shapes;
readonly HeadersFooters: HeadersFooters;
readonly SlideShowTransition: SlideShowTransition;
ColorScheme: ColorScheme;
readonly Background: ShapeRange;
Name: string;
readonly SlideID: number;
readonly PrintSteps: number;
Select(): void;
Cut(): void;
Copy(): void;
Layout: PpSlideLayout;
Duplicate(): SlideRange;
Delete(): void;
readonly Tags: Tags;
readonly SlideIndex: number;
readonly SlideNumber: number;
DisplayMasterShapes: Kso.MsoTriState;
FollowMasterBackground: Kso.MsoTriState;
readonly NotesPage: SlideRange;
readonly Master: Master;
readonly Hyperlinks: Hyperlinks;
/**
* @param ScaleWidth 默认值为 0
* @param ScaleHeight 默认值为 0
*/
Export(FileName: string, FilterName: string, ScaleWidth?: number, ScaleHeight?: number): void;
Item(Index: any): Slide;
readonly Count: number;
readonly Scripts: Kso.Scripts;
readonly Comments: Comments;
Design: Design;
MoveTo(toPos: number): void;
readonly TimeLine: TimeLine;
ApplyTemplate(FileName: string): void;
readonly SectionNumber: number;
CustomLayout: CustomLayout;
ApplyTheme(themeName: string): void;
readonly ThemeColorScheme: Kso.ThemeColorScheme;
ApplyThemeColorScheme(themeColorSchemeName: string): void;
BackgroundStyle: Kso.MsoBackgroundStyleIndex;
readonly CustomerData: CustomerData;
/**
* @param Overwrite 默认值为 false
* @param UseSlideOrder 默认值为 false
*/
PublishSlides(SlideLibraryUrl: string, Overwrite?: boolean, UseSlideOrder?: boolean): void;
MoveToSectionStart(toSection: number): void;
readonly sectionIndex: number;
readonly HasNotesPage: Kso.MsoTriState;
ApplyTemplate2(FileName: string, VariantGUID: string): void;
}
interface Shapes {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
readonly Count: number;
Item(Index: any): Shape;
AddCallout(Type: Kso.MsoCalloutType, Left: number, Top: number, Width: number, Height: number): Shape;
AddConnector(Type: Kso.MsoConnectorType, BeginX: number, BeginY: number, EndX: number, EndY: number): Shape;
AddCurve(SafeArrayOfPoints: any): Shape;
AddLabel(Orientation: Kso.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape;
AddLine(BeginX: number, BeginY: number, EndX: number, EndY: number): Shape;
/**
* @param Width 默认值为 -1
* @param Height 默认值为 -1
*/
AddPicture(FileName: string, LinkToFile: Kso.MsoTriState, SaveWithDocument: Kso.MsoTriState, Left: number, Top: number, Width?: number, Height?: number): Shape;
AddPolyline(SafeArrayOfPoints: any): Shape;
AddShape(Type: Kso.MsoAutoShapeType, Left: number, Top: number, Width: number, Height: number): Shape;
AddTextEffect(PresetTextEffect: Kso.MsoPresetTextEffect, Text: string, FontName: string, FontSize: number, FontBold: Kso.MsoTriState, FontItalic: Kso.MsoTriState, Left: number, Top: number): Shape;
AddTextbox(Orientation: Kso.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape;
BuildFreeform(EditingType: Kso.MsoEditingType, X1: number, Y1: number): FreeformBuilder;
SelectAll(): void;
Range(Index?: any): ShapeRange;
readonly HasTitle: Kso.MsoTriState;
AddTitle(): Shape;
readonly Title: Shape;
readonly Placeholders: Placeholders;
/**
* @param Left 默认值为 0
* @param Top 默认值为 0
* @param Width 默认值为 -1
* @param Height 默认值为 -1
* @param ClassName 默认值为 ""
* @param FileName 默认值为 ""
* @param DisplayAsIcon 默认值为 0
* @param IconFileName 默认值为 ""
* @param IconIndex 默认值为 0
* @param IconLabel 默认值为 ""
* @param Link 默认值为 0
*/
AddOLEObject(Left?: number, Top?: number, Width?: number, Height?: number, ClassName?: string, FileName?: string, DisplayAsIcon?: Kso.MsoTriState, IconFileName?: string, IconIndex?: number, IconLabel?: string, Link?: Kso.MsoTriState): Shape;
/**
* @param Left 默认值为 1.25
* @param Top 默认值为 1.25
* @param Width 默认值为 145.25
* @param Height 默认值为 145.25
*/
AddComment(Left?: number, Top?: number, Width?: number, Height?: number): Shape;
/**
* @param Left 默认值为 -1
* @param Top 默认值为 -1
* @param Width 默认值为 -1
* @param Height 默认值为 -1
*/
AddPlaceholder(Type: PpPlaceholderType, Left?: number, Top?: number, Width?: number, Height?: number): Shape;
/**
* @param Left 默认值为 0
* @param Top 默认值为 0
* @param Width 默认值为 -1
* @param Height 默认值为 -1
*/
AddMediaObject(FileName: string, Left?: number, Top?: number, Width?: number, Height?: number): Shape;
Paste(): ShapeRange;
/**
* @param Left 默认值为 -1
* @param Top 默认值为 -1
* @param Width 默认值为 -1
* @param Height 默认值为 -1
*/
AddTable(NumRows: number, NumColumns: number, Left?: number, Top?: number, Width?: number, Height?: number): Shape;
/**
* @param DataType 默认值为 0
* @param DisplayAsIcon 默认值为 0
* @param IconFileName 默认值为 ""
* @param IconIndex 默认值为 0
* @param IconLabel 默认值为 ""
* @param Link 默认值为 0
*/
PasteSpecial(DataType?: PpPasteDataType, DisplayAsIcon?: Kso.MsoTriState, IconFileName?: string, IconIndex?: number, IconLabel?: string, Link?: Kso.MsoTriState): ShapeRange;
AddDiagram(Type: Kso.MsoDiagramType, Left: number, Top: number, Width: number, Height: number): Shape;
AddCanvas(Left: number, Top: number, Width: number, Height: number): Shape;
/**
* @param Type 默认值为 -1
* @param Left 默认值为 -1
* @param Top 默认值为 -1
* @param Width 默认值为 -1
* @param Height 默认值为 -1
*/
AddChart(Type?: Kso.XlChartType, Left?: number, Top?: number, Width?: number, Height?: number): Shape;
/**
* @param LinkToFile 默认值为 0
* @param SaveWithDocument 默认值为 -1
* @param Left 默认值为 0
* @param Top 默认值为 0
* @param Width 默认值为 -1
* @param Height 默认值为 -1
*/
AddMediaObject2(FileName: string, LinkToFile?: Kso.MsoTriState, SaveWithDocument?: Kso.MsoTriState, Left?: number, Top?: number, Width?: number, Height?: number): Shape;
/**
* @param Left 默认值为 0
* @param Top 默认值为 0
* @param Width 默认值为 -1
* @param Height 默认值为 -1
*/
AddMediaObjectFromEmbedTag(EmbedTag: string, Left?: number, Top?: number, Width?: number, Height?: number): Shape;
/**
* @param Left 默认值为 -1
* @param Top 默认值为 -1
* @param Width 默认值为 -1
* @param Height 默认值为 -1
*/
AddSmartArt(Layout: Kso.SmartArtLayout, Left?: number, Top?: number, Width?: number, Height?: number): Shape;
/**
* @param Style 默认值为 -1
* @param Type 默认值为 -1
* @param Left 默认值为 -1
* @param Top 默认值为 -1
* @param Width 默认值为 -1
* @param Height 默认值为 -1
* @param NewLayout 默认值为 false
*/
AddChart2(Style?: number, Type?: Kso.XlChartType, Left?: number, Top?: number, Width?: number, Height?: number, NewLayout?: boolean): Shape;
/**
* @param Width 默认值为 -1
* @param Height 默认值为 -1
* @param compress 默认值为 -1
*/
AddPicture2(FileName: string, LinkToFile: Kso.MsoTriState, SaveWithDocument: Kso.MsoTriState, Left: number, Top: number, Width?: number, Height?: number, compress?: Kso.MsoPictureCompress): Shape;
}
interface Shape {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
Apply(): void;
Delete(): void;
Flip(FlipCmd: Kso.MsoFlipCmd): void;
IncrementLeft(Increment: number): void;
IncrementRotation(Increment: number): void;
IncrementTop(Increment: number): void;
PickUp(): void;
RerouteConnections(): void;
/**
* @param fScale 默认值为 0
*/
ScaleHeight(Factor: number, RelativeToOriginalSize: Kso.MsoTriState, fScale?: Kso.MsoScaleFrom): void;
/**
* @param fScale 默认值为 0
*/
ScaleWidth(Factor: number, RelativeToOriginalSize: Kso.MsoTriState, fScale?: Kso.MsoScaleFrom): void;
SetShapesDefaultProperties(): void;
Ungroup(): ShapeRange;
ZOrder(ZOrderCmd: Kso.MsoZOrderCmd): void;
readonly Adjustments: Adjustments;
AutoShapeType: Kso.MsoAutoShapeType;
BlackWhiteMode: Kso.MsoBlackWhiteMode;
readonly Callout: CalloutFormat;
readonly ConnectionSiteCount: number;
readonly Connector: Kso.MsoTriState;
readonly ConnectorFormat: ConnectorFormat;
readonly Fill: FillFormat;
readonly GroupItems: GroupShapes;
Height: number;
readonly HorizontalFlip: Kso.MsoTriState;
Left: number;
readonly Line: LineFormat;
LockAspectRatio: Kso.MsoTriState;
Name: string;
readonly Nodes: ShapeNodes;
Rotation: number;
readonly PictureFormat: PictureFormat;
readonly Shadow: ShadowFormat;
readonly TextEffect: TextEffectFormat;
readonly TextFrame: TextFrame;
readonly ThreeD: ThreeDFormat;
Top: number;
readonly Type: Kso.MsoShapeType;
readonly VerticalFlip: Kso.MsoTriState;
readonly Vertices: any;
Visible: Kso.MsoTriState;
Width: number;
readonly ZOrderPosition: number;
readonly OLEFormat: OLEFormat;
readonly LinkFormat: LinkFormat;
readonly PlaceholderFormat: PlaceholderFormat;
readonly AnimationSettings: AnimationSettings;
readonly ActionSettings: ActionSettings;
readonly Tags: Tags;
Cut(): void;
Copy(): void;
/**
* @param Replace 默认值为 -1
*/
Select(Replace?: Kso.MsoTriState): void;
Duplicate(): ShapeRange;
readonly MediaType: PpMediaType;
readonly HasTextFrame: Kso.MsoTriState;
readonly SoundFormat: SoundFormat;
readonly Script: Kso.Script;
AlternativeText: string;
readonly HasTable: Kso.MsoTriState;
readonly Table: Table;
/**
* @param ScaleWidth 默认值为 0
* @param ScaleHeight 默认值为 0
* @param ExportMode 默认值为 1
*/
Export(PathName: string, Filter: PpShapeFormat, ScaleWidth?: number, ScaleHeight?: number, ExportMode?: PpExportMode): void;
readonly HasDiagram: Kso.MsoTriState;
readonly Diagram: Diagram;
readonly HasDiagramNode: Kso.MsoTriState;
readonly DiagramNode: DiagramNode;
readonly Child: Kso.MsoTriState;
readonly ParentGroup: Shape;
readonly CanvasItems: CanvasShapes;
readonly Id: number;
CanvasCropLeft(Increment: number): void;
CanvasCropTop(Increment: number): void;
CanvasCropRight(Increment: number): void;
CanvasCropBottom(Increment: number): void;
set RTF(arg1: string);
readonly CustomerData: CustomerData;
readonly TextFrame2: TextFrame2;
readonly HasChart: Kso.MsoTriState;
ShapeStyle: Kso.MsoShapeStyleIndex;
BackgroundStyle: Kso.MsoBackgroundStyleIndex;
readonly SoftEdge: Kso.SoftEdgeFormat;
readonly Glow: Kso.GlowFormat;
readonly Reflection: Kso.ReflectionFormat;
readonly Chart: Chart;
readonly HasSmartArt: Kso.MsoTriState;
readonly SmartArt: Kso.SmartArt;
ConvertTextToSmartArt(Layout: Kso.SmartArtLayout): void;
Title: string;
readonly MediaFormat: MediaFormat;
PickupAnimation(): void;
ApplyAnimation(): void;
UpgradeMedia(): void;
readonly HasWebShape: Kso.MsoTriState;
readonly IdentificationText: string;
SaveAsPicture(FileName: any): void;
}
interface ShapeRange {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
Apply(): void;
Delete(): void;
Flip(FlipCmd: Kso.MsoFlipCmd): void;
IncrementLeft(Increment: number): void;
IncrementRotation(Increment: number): void;
IncrementTop(Increment: number): void;
PickUp(): void;
RerouteConnections(): void;
/**
* @param fScale 默认值为 0
*/
ScaleHeight(Factor: number, RelativeToOriginalSize: Kso.MsoTriState, fScale?: Kso.MsoScaleFrom): void;
/**
* @param fScale 默认值为 0
*/
ScaleWidth(Factor: number, RelativeToOriginalSize: Kso.MsoTriState, fScale?: Kso.MsoScaleFrom): void;
SetShapesDefaultProperties(): void;
Ungroup(): ShapeRange;
ZOrder(ZOrderCmd: Kso.MsoZOrderCmd): void;
readonly Adjustments: Adjustments;
AutoShapeType: Kso.MsoAutoShapeType;
BlackWhiteMode: Kso.MsoBlackWhiteMode;
readonly Callout: CalloutFormat;
readonly ConnectionSiteCount: number;
readonly Connector: Kso.MsoTriState;
readonly ConnectorFormat: ConnectorFormat;
readonly Fill: FillFormat;
readonly GroupItems: GroupShapes;
Height: number;
readonly HorizontalFlip: Kso.MsoTriState;
Left: number;
readonly Line: LineFormat;
LockAspectRatio: Kso.MsoTriState;
Name: string;
readonly Nodes: ShapeNodes;
Rotation: number;
readonly PictureFormat: PictureFormat;
readonly Shadow: ShadowFormat;
readonly TextEffect: TextEffectFormat;
readonly TextFrame: TextFrame;
readonly ThreeD: ThreeDFormat;
Top: number;
readonly Type: Kso.MsoShapeType;
readonly VerticalFlip: Kso.MsoTriState;
readonly Vertices: any;
Visible: Kso.MsoTriState;
Width: number;
readonly ZOrderPosition: number;
readonly OLEFormat: OLEFormat;
readonly LinkFormat: LinkFormat;
readonly PlaceholderFormat: PlaceholderFormat;
readonly AnimationSettings: AnimationSettings;
readonly ActionSettings: ActionSettings;
readonly Tags: Tags;
Cut(): void;
Copy(): void;
/**
* @param Replace 默认值为 -1
*/
Select(Replace?: Kso.MsoTriState): void;
Duplicate(): ShapeRange;
readonly MediaType: PpMediaType;
readonly HasTextFrame: Kso.MsoTriState;
readonly SoundFormat: SoundFormat;
Item(Index: any): Shape;
readonly Count: number;
Group(): Shape;
Regroup(): Shape;
Align(AlignCmd: Kso.MsoAlignCmd, RelativeTo: Kso.MsoTriState): void;
Distribute(DistributeCmd: Kso.MsoDistributeCmd, RelativeTo: Kso.MsoTriState): void;
readonly Script: Kso.Script;
AlternativeText: string;
readonly HasTable: Kso.MsoTriState;
readonly Table: Table;
/**
* @param ScaleWidth 默认值为 0
* @param ScaleHeight 默认值为 0
* @param ExportMode 默认值为 1
*/
Export(PathName: string, Filter: PpShapeFormat, ScaleWidth?: number, ScaleHeight?: number, ExportMode?: PpExportMode): void;
readonly HasDiagram: Kso.MsoTriState;
readonly Diagram: Diagram;
readonly HasDiagramNode: Kso.MsoTriState;
readonly DiagramNode: DiagramNode;
readonly Child: Kso.MsoTriState;
readonly ParentGroup: Shape;
readonly CanvasItems: CanvasShapes;
readonly Id: number;
CanvasCropLeft(Increment: number): void;
CanvasCropTop(Increment: number): void;
CanvasCropRight(Increment: number): void;
CanvasCropBottom(Increment: number): void;
set RTF(arg1: string);
readonly CustomerData: CustomerData;
readonly TextFrame2: TextFrame2;
readonly HasChart: Kso.MsoTriState;
ShapeStyle: Kso.MsoShapeStyleIndex;
BackgroundStyle: Kso.MsoBackgroundStyleIndex;
readonly SoftEdge: Kso.SoftEdgeFormat;
readonly Glow: Kso.GlowFormat;
readonly Reflection: Kso.ReflectionFormat;
readonly Chart: Chart;
readonly HasSmartArt: Kso.MsoTriState;
readonly SmartArt: Kso.SmartArt;
ConvertTextToSmartArt(Layout: Kso.SmartArtLayout): void;
Title: string;
readonly MediaFormat: MediaFormat;
PickupAnimation(): void;
ApplyAnimation(): void;
UpgradeMedia(): void;
/**
* @param PrimaryShape 默认值为 null
*/
MergeShapes(MergeCmd: Kso.MsoMergeCmd, PrimaryShape?: Shape): void;
}
interface Adjustments {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
readonly Count: number;
Item(Index: number, Val: number): void;
Item(Index: number): number;
}
interface CalloutFormat {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
AutomaticLength(): void;
CustomDrop(Drop: number): void;
CustomLength(Length: number): void;
PresetDrop(DropType: Kso.MsoCalloutDropType): void;
Accent: Kso.MsoTriState;
Angle: Kso.MsoCalloutAngleType;
AutoAttach: Kso.MsoTriState;
readonly AutoLength: Kso.MsoTriState;
Border: Kso.MsoTriState;
readonly Drop: number;
readonly DropType: Kso.MsoCalloutDropType;
Gap: number;
readonly Length: number;
Type: Kso.MsoCalloutType;
}
interface ConnectorFormat {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
BeginConnect(ConnectedShape: Shape, ConnectionSite: number): void;
BeginDisconnect(): void;
EndConnect(ConnectedShape: Shape, ConnectionSite: number): void;
EndDisconnect(): void;
readonly BeginConnected: Kso.MsoTriState;
readonly BeginConnectedShape: Shape;
readonly BeginConnectionSite: number;
readonly EndConnected: Kso.MsoTriState;
readonly EndConnectedShape: Shape;
readonly EndConnectionSite: number;
Type: Kso.MsoConnectorType;
}
interface FillFormat {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
Background(): void;
OneColorGradient(Style: Kso.MsoGradientStyle, Variant: number, Degree: number): void;
Patterned(Pattern: Kso.MsoPatternType): void;
PresetGradient(Style: Kso.MsoGradientStyle, Variant: number, PresetGradientType: Kso.MsoPresetGradientType): void;
PresetTextured(PresetTexture: Kso.MsoPresetTexture): void;
Solid(): void;
TwoColorGradient(Style: Kso.MsoGradientStyle, Variant: number): void;
UserPicture(PictureFile: string): void;
UserTextured(TextureFile: string): void;
BackColor: ColorFormat;
ForeColor: ColorFormat;
readonly GradientColorType: Kso.MsoGradientColorType;
readonly GradientDegree: number;
readonly GradientStyle: Kso.MsoGradientStyle;
readonly GradientVariant: number;
readonly Pattern: Kso.MsoPatternType;
readonly PresetGradientType: Kso.MsoPresetGradientType;
readonly PresetTexture: Kso.MsoPresetTexture;
readonly TextureName: string;
readonly TextureType: Kso.MsoTextureType;
Transparency: number;
readonly Type: Kso.MsoFillType;
Visible: Kso.MsoTriState;
readonly GradientStops: Kso.GradientStops;
TextureOffsetX: number;
TextureOffsetY: number;
TextureAlignment: Kso.MsoTextureAlignment;
TextureHorizontalScale: number;
TextureVerticalScale: number;
TextureTile: Kso.MsoTriState;
RotateWithObject: Kso.MsoTriState;
readonly PictureEffects: Kso.PictureEffects;
GradientAngle: number;
}
interface ColorFormat {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
RGB: number;
readonly Type: Kso.MsoColorType;
SchemeColor: PpColorSchemeIndex;
TintAndShade: number;
ObjectThemeColor: Kso.MsoThemeColorIndex;
Brightness: number;
}
interface GroupShapes {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
readonly Count: number;
Item(Index: any): Shape;
Range(Index: any): ShapeRange;
}
interface LineFormat {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
BackColor: ColorFormat;
BeginArrowheadLength: Kso.MsoArrowheadLength;
BeginArrowheadStyle: Kso.MsoArrowheadStyle;
BeginArrowheadWidth: Kso.MsoArrowheadWidth;
DashStyle: Kso.MsoLineDashStyle;
EndArrowheadLength: Kso.MsoArrowheadLength;
EndArrowheadStyle: Kso.MsoArrowheadStyle;
EndArrowheadWidth: Kso.MsoArrowheadWidth;
ForeColor: ColorFormat;
Pattern: Kso.MsoPatternType;
Style: Kso.MsoLineStyle;
Transparency: number;
Visible: Kso.MsoTriState;
Weight: number;
InsetPen: Kso.MsoTriState;
}
interface ShapeNodes {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
readonly Count: number;
Item(Index: any): ShapeNode;
Delete(Index: number): void;
/**
* @param X2 默认值为 0
* @param Y2 默认值为 0
* @param X3 默认值为 0
* @param Y3 默认值为 0
*/
Insert(Index: number, SegmentType: Kso.MsoSegmentType, EditingType: Kso.MsoEditingType, X1: number, Y1: number, X2?: number, Y2?: number, X3?: number, Y3?: number): void;
SetEditingType(Index: number, EditingType: Kso.MsoEditingType): void;
SetPosition(Index: number, X1: number, Y1: number): void;
SetSegmentType(Index: number, SegmentType: Kso.MsoSegmentType): void;
}
interface ShapeNode {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
readonly EditingType: Kso.MsoEditingType;
readonly Points: any;
readonly SegmentType: Kso.MsoSegmentType;
}
interface PictureFormat {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
IncrementBrightness(Increment: number): void;
IncrementContrast(Increment: number): void;
Brightness: number;
ColorType: Kso.MsoPictureColorType;
Contrast: number;
CropBottom: number;
CropLeft: number;
CropRight: number;
CropTop: number;
TransparencyColor: number;
TransparentBackground: Kso.MsoTriState;
readonly Crop: Kso.Crop;
}
interface ShadowFormat {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
IncrementOffsetX(Increment: number): void;
IncrementOffsetY(Increment: number): void;
ForeColor: ColorFormat;
Obscured: Kso.MsoTriState;
OffsetX: number;
OffsetY: number;
Transparency: number;
Type: Kso.MsoShadowType;
Visible: Kso.MsoTriState;
Style: Kso.MsoShadowStyle;
Blur: number;
Size: number;
RotateWithShape: Kso.MsoTriState;
}
interface TextEffectFormat {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
ToggleVerticalText(): void;
Alignment: Kso.MsoTextEffectAlignment;
FontBold: Kso.MsoTriState;
FontItalic: Kso.MsoTriState;
FontName: string;
FontSize: number;
KernedPairs: Kso.MsoTriState;
NormalizedHeight: Kso.MsoTriState;
PresetShape: Kso.MsoPresetTextEffectShape;
PresetTextEffect: Kso.MsoPresetTextEffect;
RotatedChars: Kso.MsoTriState;
Text: string;
Tracking: number;
}
interface TextFrame {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
MarginBottom: number;
MarginLeft: number;
MarginRight: number;
MarginTop: number;
Orientation: Kso.MsoTextOrientation;
readonly HasText: Kso.MsoTriState;
readonly TextRange: TextRange;
readonly Ruler: Ruler;
HorizontalAnchor: Kso.MsoHorizontalAnchor;
VerticalAnchor: Kso.MsoVerticalAnchor;
AutoSize: PpAutoSize;
WordWrap: Kso.MsoTriState;
DeleteText(): void;
}
interface TextRange {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
readonly ActionSettings: ActionSettings;
readonly Start: number;
readonly Length: number;
readonly BoundLeft: number;
readonly BoundTop: number;
readonly BoundWidth: number;
readonly BoundHeight: number;
/**
* @param Start 默认值为 -1
* @param Length 默认值为 -1
*/
Paragraphs(Start?: number, Length?: number): TextRange;
/**
* @param Start 默认值为 -1
* @param Length 默认值为 -1
*/
Sentences(Start?: number, Length?: number): TextRange;
/**
* @param Start 默认值为 -1
* @param Length 默认值为 -1
*/
Words(Start?: number, Length?: number): TextRange;
/**
* @param Start 默认值为 -1
* @param Length 默认值为 -1
*/
Characters(Start?: number, Length?: number): TextRange;
/**
* @param Start 默认值为 -1
* @param Length 默认值为 -1
*/
Lines(Start?: number, Length?: number): TextRange;
/**
* @param Start 默认值为 -1
* @param Length 默认值为 -1
*/
Runs(Start?: number, Length?: number): TextRange;
TrimText(): TextRange;
Text: string;
/**
* @param NewText 默认值为 ""
*/
InsertAfter(NewText?: string): TextRange;
/**
* @param NewText 默认值为 ""
*/
InsertBefore(NewText?: string): TextRange;
/**
* @param InsertAsField 默认值为 0
*/
InsertDateTime(DateTimeFormat: PpDateTimeFormat, InsertAsField?: Kso.MsoTriState): TextRange;
InsertSlideNumber(): TextRange;
/**
* @param Unicode 默认值为 0
*/
InsertSymbol(FontName: string, CharNumber: number, Unicode?: Kso.MsoTriState): TextRange;
readonly Font: Font;
readonly ParagraphFormat: ParagraphFormat;
IndentLevel: number;
Select(): void;
Cut(): void;
Copy(): void;
Delete(): void;
Paste(): TextRange;
ChangeCase(Type: PpChangeCase): void;
AddPeriods(): void;
RemovePeriods(): void;
/**
* @param After 默认值为 0
* @param MatchCase 默认值为 0
* @param WholeWords 默认值为 0
*/
Find(FindWhat: string, After?: number, MatchCase?: Kso.MsoTriState, WholeWords?: Kso.MsoTriState): TextRange;
/**
* @param After 默认值为 0
* @param MatchCase 默认值为 0
* @param WholeWords 默认值为 0
*/
Replace(FindWhat: string, ReplaceWhat: string, After?: number, MatchCase?: Kso.MsoTriState, WholeWords?: Kso.MsoTriState): TextRange;
RotatedBounds(): {X1: number, Y1: number, X2: number, Y2: number, X3: number, Y3: number, x4: number, y4: number};
LanguageID: Kso.MsoLanguageID;
RtlRun(): void;
LtrRun(): void;
/**
* @param DataType 默认值为 0
* @param DisplayAsIcon 默认值为 0
* @param IconFileName 默认值为 ""
* @param IconIndex 默认值为 0
* @param IconLabel 默认值为 ""
* @param Link 默认值为 0
*/
PasteSpecial(DataType?: PpPasteDataType, DisplayAsIcon?: Kso.MsoTriState, IconFileName?: string, IconIndex?: number, IconLabel?: string, Link?: Kso.MsoTriState): TextRange;
}
interface ActionSettings {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
Item(Index: PpMouseActivation): ActionSetting;
}
interface ActionSetting {
readonly Application: Application;
readonly Parent: any;
Action: PpActionType;
ActionVerb: string;
AnimateAction: Kso.MsoTriState;
Run: string;
SlideShowName: string;
readonly Hyperlink: Hyperlink;
readonly SoundEffect: SoundEffect;
ShowAndReturn: Kso.MsoTriState;
}
interface Hyperlink {
readonly Application: Application;
readonly Parent: any;
readonly Type: Kso.MsoHyperlinkType;
Address: string;
SubAddress: string;
AddToFavorites(): void;
EmailSubject: string;
ScreenTip: string;
TextToDisplay: string;
ShowAndReturn: Kso.MsoTriState;
Follow(): void;
CreateNewDocument(FileName: string, EditNow: Kso.MsoTriState, Overwrite: Kso.MsoTriState): void;
Delete(): void;
}
interface SoundEffect {
readonly Application: Application;
readonly Parent: any;
Name: string;
Type: PpSoundEffectType;
ImportFromFile(FileName: string): void;
Play(): void;
}
interface Font {
readonly Application: Application;
readonly Parent: any;
readonly Color: ColorFormat;
Bold: Kso.MsoTriState;
Italic: Kso.MsoTriState;
Shadow: Kso.MsoTriState;
Emboss: Kso.MsoTriState;
Underline: Kso.MsoTriState;
Subscript: Kso.MsoTriState;
Superscript: Kso.MsoTriState;
BaselineOffset: number;
readonly Embedded: Kso.MsoTriState;
readonly Embeddable: Kso.MsoTriState;
Size: number;
Name: string;
NameFarEast: string;
NameAscii: string;
AutoRotateNumbers: Kso.MsoTriState;
NameOther: string;
NameComplexScript: string;
}
interface ParagraphFormat {
readonly Application: Application;
readonly Parent: any;
Alignment: PpParagraphAlignment;
readonly Bullet: BulletFormat;
LineRuleBefore: Kso.MsoTriState;
LineRuleAfter: Kso.MsoTriState;
LineRuleWithin: Kso.MsoTriState;
SpaceBefore: number;
SpaceAfter: number;
SpaceWithin: number;
BaseLineAlignment: PpBaselineAlignment;
FarEastLineBreakControl: Kso.MsoTriState;
WordWrap: Kso.MsoTriState;
HangingPunctuation: Kso.MsoTriState;
TextDirection: PpDirection;
}
interface BulletFormat {
readonly Application: Application;
readonly Parent: any;
Visible: Kso.MsoTriState;
Character: number;
RelativeSize: number;
UseTextColor: Kso.MsoTriState;
UseTextFont: Kso.MsoTriState;
readonly Font: Font;
Type: PpBulletType;
Style: PpNumberedBulletStyle;
StartValue: number;
Picture(Picture: string): void;
readonly Number: number;
}
interface Ruler {
readonly Application: Application;
readonly Parent: any;
readonly TabStops: TabStops;
readonly Levels: RulerLevels;
}
interface TabStops {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
Item(Index: number): TabStop;
DefaultSpacing: number;
Add(Type: PpTabStopType, Position: number): TabStop;
}
interface TabStop {
readonly Application: Application;
readonly Parent: any;
Type: PpTabStopType;
Position: number;
Clear(): void;
}
interface RulerLevels {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
Item(Index: number): RulerLevel;
}
interface RulerLevel {
readonly Application: Application;
readonly Parent: any;
FirstMargin: number;
LeftMargin: number;
}
interface ThreeDFormat {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
IncrementRotationX(Increment: number): void;
IncrementRotationY(Increment: number): void;
ResetRotation(): void;
SetThreeDFormat(PresetThreeDFormat: Kso.MsoPresetThreeDFormat): void;
SetExtrusionDirection(PresetExtrusionDirection: Kso.MsoPresetExtrusionDirection): void;
Depth: number;
readonly ExtrusionColor: ColorFormat;
ExtrusionColorType: Kso.MsoExtrusionColorType;
Perspective: Kso.MsoTriState;
readonly PresetExtrusionDirection: Kso.MsoPresetExtrusionDirection;
PresetLightingDirection: Kso.MsoPresetLightingDirection;
PresetLightingSoftness: Kso.MsoPresetLightingSoftness;
PresetMaterial: Kso.MsoPresetMaterial;
readonly PresetThreeDFormat: Kso.MsoPresetThreeDFormat;
RotationX: number;
RotationY: number;
Visible: Kso.MsoTriState;
SetPresetCamera(PresetCamera: Kso.MsoPresetCamera): void;
IncrementRotationZ(Increment: number): void;
IncrementRotationHorizontal(Increment: number): void;
IncrementRotationVertical(Increment: number): void;
PresetLighting: Kso.MsoLightRigType;
Z: number;
BevelTopType: Kso.MsoBevelType;
BevelTopInset: number;
BevelTopDepth: number;
BevelBottomType: Kso.MsoBevelType;
BevelBottomInset: number;
BevelBottomDepth: number;
readonly PresetCamera: Kso.MsoPresetCamera;
RotationZ: number;
ContourWidth: number;
readonly ContourColor: ColorFormat;
FieldOfView: number;
ProjectText: Kso.MsoTriState;
LightAngle: number;
}
interface OLEFormat {
readonly Application: Application;
readonly Parent: any;
readonly ObjectVerbs: ObjectVerbs;
readonly Object: any;
readonly ProgID: string;
FollowColors: PpFollowColors;
/**
* @param Index 默认值为 0
*/
DoVerb(Index?: number): void;
Activate(): void;
}
interface ObjectVerbs {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
Item(Index: number): string;
}
interface LinkFormat {
readonly Application: Application;
readonly Parent: any;
SourceFullName: string;
AutoUpdate: PpUpdateOption;
Update(): void;
BreakLink(): void;
}
interface PlaceholderFormat {
readonly Application: Application;
readonly Parent: any;
readonly Type: PpPlaceholderType;
Name: string;
readonly ContainedType: Kso.MsoShapeType;
}
interface AnimationSettings {
readonly Application: Application;
readonly Parent: any;
readonly DimColor: ColorFormat;
readonly SoundEffect: SoundEffect;
EntryEffect: PpEntryEffect;
AfterEffect: PpAfterEffect;
AnimationOrder: number;
AdvanceMode: PpAdvanceMode;
AdvanceTime: number;
readonly PlaySettings: PlaySettings;
TextLevelEffect: PpTextLevelEffect;
TextUnitEffect: PpTextUnitEffect;
Animate: Kso.MsoTriState;
AnimateBackground: Kso.MsoTriState;
AnimateTextInReverse: Kso.MsoTriState;
ChartUnitEffect: PpChartUnitEffect;
}
interface PlaySettings {
readonly Application: Application;
readonly Parent: any;
ActionVerb: string;
HideWhileNotPlaying: Kso.MsoTriState;
LoopUntilStopped: Kso.MsoTriState;
PlayOnEntry: Kso.MsoTriState;
RewindMovie: Kso.MsoTriState;
PauseAnimation: Kso.MsoTriState;
StopAfterSlides: number;
}
interface Tags {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
Item(Name: string): string;
Add(Name: string, Value: string): void;
Delete(Name: string): void;
AddBinary(Name: string, FilePath: string): void;
BinaryValue(Name: string): number;
Name(Index: number): string;
Value(Index: number): string;
}
interface SoundFormat {
Play(): void;
Import(FileName: string): void;
Export(FileName: string): PpSoundFormatType;
readonly Type: PpSoundFormatType;
readonly SourceFullName: string;
}
interface Table {
readonly Application: Application;
readonly Parent: any;
readonly Columns: Columns;
readonly Rows: Rows;
Cell(Row: number, Column: number): Cell;
TableDirection: PpDirection;
MergeBorders(): void;
FirstRow: boolean;
LastRow: boolean;
FirstCol: boolean;
LastCol: boolean;
HorizBanding: boolean;
VertBanding: boolean;
readonly Style: TableStyle;
readonly Background: TableBackground;
ScaleProportionally(scale: number): void;
/**
* @param StyleID 默认值为 ""
* @param SaveFormatting 默认值为 false
*/
ApplyStyle(StyleID?: string, SaveFormatting?: boolean): void;
AlternativeText: string;
Title: string;
}
interface Columns {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
Item(Index: number): Column;
/**
* @param BeforeColumn 默认值为 -1
*/
Add(BeforeColumn?: number): Column;
}
interface Column {
readonly Application: Application;
readonly Parent: any;
readonly Cells: CellRange;
Select(): void;
Delete(): void;
Width: number;
}
interface CellRange {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
Item(Index: number): Cell;
readonly Borders: Borders;
}
interface Cell {
readonly Application: Application;
readonly Parent: any;
readonly Shape: Shape;
readonly Borders: Borders;
Merge(MergeTo: Cell): void;
Split(NumRows: number, NumColumns: number): void;
Select(): void;
readonly Selected: boolean;
}
interface Borders {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
Item(BorderType: PpBorderType): LineFormat;
}
interface Rows {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
Item(Index: number): Row;
/**
* @param BeforeRow 默认值为 -1
*/
Add(BeforeRow?: number): Row;
}
interface Row {
readonly Application: Application;
readonly Parent: any;
readonly Cells: CellRange;
Select(): void;
Delete(): void;
Height: number;
}
interface TableStyle {
readonly Name: string;
readonly Id: string;
}
interface TableBackground {
readonly Fill: FillFormat;
readonly Picture: PictureFormat;
readonly Reflection: Kso.ReflectionFormat;
readonly Shadow: ShadowFormat;
}
interface Diagram {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
readonly Nodes: DiagramNodes;
readonly Type: Kso.MsoDiagramType;
AutoLayout: Kso.MsoTriState;
Reverse: Kso.MsoTriState;
AutoFormat: Kso.MsoTriState;
Convert(Type: Kso.MsoDiagramType): void;
FitText(): void;
}
interface DiagramNodes {
readonly Application: any;
readonly Creator: number;
Item(Index: any): DiagramNode;
SelectAll(): void;
readonly Parent: any;
readonly Count: number;
}
interface DiagramNode {
readonly Application: any;
readonly Creator: number;
/**
* @param Pos 默认值为 2
* @param NodeType 默认值为 1
*/
AddNode(Pos?: Kso.MsoRelativeNodePosition, NodeType?: Kso.MsoDiagramNodeType): DiagramNode;
Delete(): void;
MoveNode(TargetNode: DiagramNode, Pos: Kso.MsoRelativeNodePosition): void;
ReplaceNode(TargetNode: DiagramNode): void;
/**
* @param SwapChildren 默认值为 true
*/
SwapNode(TargetNode: DiagramNode, SwapChildren?: boolean): void;
/**
* @param Pos 默认值为 2
*/
CloneNode(CopyChildren: boolean, TargetNode: DiagramNode, Pos?: Kso.MsoRelativeNodePosition): DiagramNode;
TransferChildren(ReceivingNode: DiagramNode): void;
NextNode(): DiagramNode;
PrevNode(): DiagramNode;
readonly Parent: any;
readonly Children: DiagramNodeChildren;
readonly Shape: Shape;
readonly Root: DiagramNode;
readonly Diagram: Diagram;
Layout: Kso.MsoOrgChartLayoutType;
readonly TextShape: Shape;
}
interface DiagramNodeChildren {
readonly Application: any;
readonly Creator: number;
Item(Index: any): DiagramNode;
/**
* @param Index 默认值为 -1
* @param NodeType 默认值为 1
*/
AddNode(Index?: any, NodeType?: Kso.MsoDiagramNodeType): DiagramNode;
SelectAll(): void;
readonly Parent: any;
readonly Count: number;
readonly FirstChild: DiagramNode;
readonly LastChild: DiagramNode;
}
interface CanvasShapes {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
readonly Count: number;
Item(Index: any): Shape;
AddCallout(Type: Kso.MsoCalloutType, Left: number, Top: number, Width: number, Height: number): Shape;
AddConnector(Type: Kso.MsoConnectorType, BeginX: number, BeginY: number, EndX: number, EndY: number): Shape;
AddCurve(SafeArrayOfPoints: any): Shape;
AddLabel(Orientation: Kso.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape;
AddLine(BeginX: number, BeginY: number, EndX: number, EndY: number): Shape;
/**
* @param Width 默认值为 -1
* @param Height 默认值为 -1
*/
AddPicture(FileName: string, LinkToFile: Kso.MsoTriState, SaveWithDocument: Kso.MsoTriState, Left: number, Top: number, Width?: number, Height?: number): Shape;
AddPolyline(SafeArrayOfPoints: any): Shape;
AddShape(Type: Kso.MsoAutoShapeType, Left: number, Top: number, Width: number, Height: number): Shape;
AddTextEffect(PresetTextEffect: Kso.MsoPresetTextEffect, Text: string, FontName: string, FontSize: number, FontBold: Kso.MsoTriState, FontItalic: Kso.MsoTriState, Left: number, Top: number): Shape;
AddTextbox(Orientation: Kso.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape;
BuildFreeform(EditingType: Kso.MsoEditingType, X1: number, Y1: number): FreeformBuilder;
Range(Index: any): ShapeRange;
SelectAll(): void;
readonly Background: Shape;
}
interface FreeformBuilder {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
/**
* @param X2 默认值为 0
* @param Y2 默认值为 0
* @param X3 默认值为 0
* @param Y3 默认值为 0
*/
AddNodes(SegmentType: Kso.MsoSegmentType, EditingType: Kso.MsoEditingType, X1: number, Y1: number, X2?: number, Y2?: number, X3?: number, Y3?: number): void;
ConvertToShape(): Shape;
}
interface CustomerData {
readonly Count: number;
readonly Application: Application;
readonly Parent: any;
Item(Id: string): Kso.CustomXMLPart;
Add(): Kso.CustomXMLPart;
Delete(Id: string): void;
}
interface TextFrame2 {
readonly Application: any;
readonly Creator: number;
readonly Parent: any;
MarginBottom: number;
MarginLeft: number;
MarginRight: number;
MarginTop: number;
Orientation: Kso.MsoTextOrientation;
HorizontalAnchor: Kso.MsoHorizontalAnchor;
VerticalAnchor: Kso.MsoVerticalAnchor;
PathFormat: Kso.MsoPathFormat;
WarpFormat: Kso.MsoWarpFormat;
WordArtFormat: Kso.MsoPresetTextEffect;
WordWrap: Kso.MsoTriState;
AutoSize: Kso.MsoAutoSize;
readonly ThreeD: ThreeDFormat;
readonly HasText: Kso.MsoTriState;
readonly TextRange: Kso.TextRange2;
readonly Column: Kso.TextColumn2;
readonly Ruler: Kso.Ruler2;
DeleteText(): void;
NoTextRotation: Kso.MsoTriState;
}
interface Chart {
readonly Parent: any;
/**
* @param Type 默认值为 2
*/
ApplyDataLabels(Type?: Kso.XlDataLabelsType, LegendKey?: any, AutoText?: any, HasLeaderLines?: any, ShowSeriesName?: any, ShowCategoryName?: any, ShowValue?: any, ShowPercentage?: any, ShowBubbleSize?: any, Separator?: any): void;
ChartType: Kso.XlChartType;
HasDataTable: boolean;
ApplyCustomType(ChartType: Kso.XlChartType, TypeName?: any): void;
GetChartElement(X: number, Y: number): {ElementID: number, Arg1: number, Arg2: number};
SetSourceData(Source: string, PlotBy?: any): void;
PlotBy: Kso.XlRowCol;
AutoFormat(Gallery: number, Format?: any): void;
SetBackgroundPicture(FileName: string): void;
readonly DataTable: DataTable;
Paste(Type?: any): void;
BarShape: Kso.XlBarShape;
SetDefaultChart(Name: any): void;
ApplyChartTemplate(FileName: string): void;
SaveChartTemplate(FileName: string): void;
readonly SideWall: Walls;
readonly BackWall: Walls;
ChartStyle: any;
ClearToMatchStyle(): void;
HasPivotFields: boolean;
ShowDataLabelsOverMaximum: boolean;
ApplyLayout(Layout: number, ChartType?: any): void;
Refresh(): void;
readonly ChartData: ChartData;
readonly Shapes: Shapes;
readonly Creator: number;
readonly Area3DGroup: ChartGroup;
AreaGroups(Index?: any): any;
readonly Bar3DGroup: ChartGroup;
BarGroups(Index?: any): any;
readonly Column3DGroup: ChartGroup;
ColumnGroups(Index?: any): any;
readonly Line3DGroup: ChartGroup;
LineGroups(Index?: any): any;
readonly Pie3DGroup: ChartGroup;
PieGroups(Index?: any): any;
DoughnutGroups(Index?: any): any;
RadarGroups(Index?: any): any;
readonly SurfaceGroup: ChartGroup;
XYGroups(Index?: any): any;
readonly Application: Application;
/**
* @param Type 默认值为 2
*/
_ApplyDataLabels(Type?: Kso.XlDataLabelsType, LegendKey?: any, AutoText?: any, HasLeaderLines?: any): void;
AutoScaling: boolean;
/**
* @param AxisGroup 默认值为 1
*/
Axes(Type?: any, AxisGroup?: Kso.XlAxisGroup): any;
readonly ChartArea: ChartArea;
ChartGroups(Index?: any): any;
readonly ChartTitle: ChartTitle;
ChartWizard(Source?: any, Gallery?: any, Format?: any, PlotBy?: any, CategoryLabels?: any, SeriesLabels?: any, HasLegend?: any, Title?: any, CategoryTitle?: any, ValueTitle?: any, ExtraTitle?: any): void;
Copy(Before?: any, After?: any): void;
/**
* @param Appearance 默认值为 1
* @param Format 默认值为 -4147
* @param Size 默认值为 2
*/
CopyPicture(Appearance?: XlPictureAppearance, Format?: XlCopyPictureFormat, Size?: XlPictureAppearance): void;
readonly Corners: Corners;
Delete(): void;
DepthPercent: number;
DisplayBlanksAs: Kso.XlDisplayBlanksAs;
Elevation: number;
Export(FileName: string, FilterName?: any, Interactive?: any): boolean;
readonly Floor: Floor;
GapDepth: number;
HasAxis(Index1?: any, Index2?: any, RHS?: any): void;
HasAxis(Index1?: any, Index2?: any): any;
HasLegend: boolean;
HasTitle: boolean;
HeightPercent: number;
readonly Legend: Legend;
Name: string;
Perspective: number;
readonly PlotArea: PlotArea;
PlotVisibleOnly: boolean;
RightAngleAxes: any;
Rotation: any;
Select(Replace?: any): void;
SeriesCollection(Index?: any): any;
SetElement(Element: Kso.MsoChartElementType): void;
Subtype: number;
Type: number;
readonly Walls: Walls;
readonly Format: ChartFormat;
ShowReportFilterFieldButtons: boolean;
ShowLegendFieldButtons: boolean;
ShowAxisFieldButtons: boolean;
ShowValueFieldButtons: boolean;
ShowAllFieldButtons: boolean;
AlternativeText: string;
Title: string;
FullSeriesCollection(Index?: any): any;
CategoryLabelLevel: Kso.XlCategoryLabelLevel;
SeriesNameLevel: Kso.XlSeriesNameLevel;
readonly HasHiddenContent: boolean;
DeleteHiddenContent(): void;
ChartColor: any;
ClearToMatchColorStyle(): void;
}
interface DataTable {
ShowLegendKey: boolean;
HasBorderHorizontal: boolean;
HasBorderVertical: boolean;
HasBorderOutline: boolean;
readonly Border: ChartBorder;
readonly Font: ChartFont;
Select(): void;
Delete(): void;
readonly Parent: any;
AutoScaleFont: any;
readonly Format: ChartFormat;
readonly Creator: number;
readonly Application: Application;
}
interface ChartBorder {
Color: any;
ColorIndex: any;
LineStyle: any;
Weight: any;
readonly Creator: number;
readonly Parent: any;
readonly Application: Application;
}
interface ChartFont {
Background: any;
Bold: any;
Color: any;
ColorIndex: any;
FontStyle: any;
Italic: any;
Name: any;
OutlineFont: any;
Shadow: any;
Size: any;
Strikethrough: any;
Subscript: any;
Superscript: any;
Underline: any;
readonly Creator: number;
readonly Parent: any;
readonly Application: Application;
}
interface ChartFormat {
readonly Fill: FillFormat;
readonly Glow: Kso.GlowFormat;
readonly Line: LineFormat;
readonly Parent: any;
readonly PictureFormat: PictureFormat;
readonly Shadow: ShadowFormat;
readonly SoftEdge: Kso.SoftEdgeFormat;
readonly TextFrame2: TextFrame2;
readonly ThreeD: ThreeDFormat;
readonly Creator: number;
readonly Application: Application;
readonly Adjustments: Adjustments;
AutoShapeType: Kso.MsoAutoShapeType;
}
interface Walls {
readonly Name: string;
Select(): any;
readonly Parent: any;
readonly Border: ChartBorder;
ClearFormats(): any;
readonly Interior: Interior;
readonly Fill: ChartFillFormat;
PictureType: any;
Paste(): void;
PictureUnit: any;
Thickness: number;
readonly Format: ChartFormat;
readonly Creator: number;
readonly Application: Application;
}
interface Interior {
Color: any;
ColorIndex: any;
InvertIfNegative: any;
Pattern: any;
PatternColor: any;
PatternColorIndex: any;
readonly Creator: number;
readonly Parent: any;
readonl