Page

Page class

包含定义文档中页面的元素。

public class Page : IDisposable

构造函数

姓名 描述
Page() 构造函数.
Page(int) 构造函数.

特性

姓名 描述
AssociatedPage { get; set; } 原始绘图页的 ID,由绘图审阅者标记在单独的标记叠加层上。
Background { get; set; } 指示页面是否为背景页面的标志。
BackPage { get; set; } 页面的背景页面。
Connects { get; } 为绘图中两个形状之间的每个连接包含一个连接元素。
ID { get; set; } 元素在其父元素中的唯一 ID。
Name { get; set; } 元素的名称。
NameU { get; set; } 元素的通用名称。
Pages { get; set; } 页面集合.
PageSheet { get; } 包含为 Page 或 Master 元素定义页表的元素。
PresetTheme { set; } 将预设主题应用于此页面
PresetThemeQuickStyle { set; } 将预设主题变体 quickstyle 应用到此页面
PresetThemeVariant { set; } 将预设主题变体应用于此页面
ReviewerID { get; set; } 与标记覆盖关联的审阅者的 ID。
Shapes { get; } 形状集合.
ViewCenterX { get; set; } ViewCenterX 和 ViewCenterY 指定页面上的中心点,新视图(窗口)最初打开时采用该中心点。
ViewCenterY { get; set; } ViewCenterX 和 ViewCenterY 指定页面上的中心点,新视图(窗口)最初打开时采用该中心点。
ViewScale { get; set; } 打开页面的新视图(窗口)时使用的默认放大系数。例如,1 = 100%; 1.5 = 150%,依此类推。

方法

姓名 描述
AddActiveXControl(ControlType, double, double, double, double) 创建一个 Activex 控件。
AddComment(long, string) 向具有形状 ID 的形状添加注释。
AddComment(Shape, string) 向形状添加注释。
AddComment(double, double, string) 添加带有定义的 PinX 和 PinY 的注释。
AddShape(Shape, string) 将 master 创建的形状添加到特定页面。
AddShape(double, double, string) 在具有定义的 PinX 和 PinY 的页面上添加由 master 创建的形状。
AddShape(double, double, double, double, Stream)
AddShape(double, double, double, double, string) 添加由 master 在页面上创建的具有定义的 PinX、PinY、宽度和高度的形状。
AddShape(double, double, double, double, Stream, Stream)
AddText(double, double, double, double, string) 添加具有定义的 PinX 和 PinY 的文本。
AddText(double, double, double, double, string, string, string, double) 添加具有定义的 PinX 和 PinY 的文本。
ApplyStyle(int, int, int) 为整页应用样式。
AutoSpaceShapes(ShapeCollection, AutoSpaceOptions) 自动空间形状
BringForward(long) 带来一个由 ID 定义的形状,在 z 顺序中向前移动一个位置。
BringToFront(long) 将由 ID 定义的形状带到 z 顺序的前面。
CenterDrawing() 使页面的形状相对于页面的范围居中。 使形状居中不会改变它们相对于彼此的位置。
ConnectShapesViaConnector(long, ConnectionPointPlace, long, ConnectionPointPlace, long) 通过连接器连接形状。
ConnectShapesViaConnector(long, string, long, string, long) 通过连接器连接形状。
ConnectShapesViaConnector(Shape, ConnectionPointPlace, Shape, ConnectionPointPlace, Shape) 通过连接器连接形状。
ConnectShapesViaConnectorIndex(long, int, long, int, long) 通过连接器索引连接形状。
ConnectShapesViaConnectorIndex(Shape, int, Shape, int, Shape) 通过连接器索引连接形状。
Copy(Page)
Dispose() 执行与释放、释放或 重置非托管资源相关的应用程序定义的任务。
DrawBezier(double, double, double, double, PointF[]) 绘制贝塞尔曲线的过程。 点的长度要等于或大于3.
DrawEllipse(double, double, double, double) 画椭圆的过程。
DrawLine(double, double, double, double) 画单线的过程。
DrawLine(double, double, double, double, double[]) 画线的过程。
DrawLine(double, double, double, double, PointF[]) 画线的过程。
DrawPolyline(double, double, double, double, double[]) 绘制Polyline的过程。
DrawPolyline(double, double, double, double, PointF[]) 绘制折线的过程。
DrawRectangle(double, double, double, double) 绘制矩形的过程。
DrawSpline(double, double, double, double, PointF[]) 绘制spline的过程。
GlueShapes(long, ConnectionPointPlace, long) 胶水形状
GlueShapes(Shape, ConnectionPointPlace, Shape) 胶水形状.
GlueShapesInContainer(long, int, int, long) 容器中的胶水形状
GlueShapesInContainer(long, string, string, long) 使用连接名称 在容器中粘贴形状
GlueShapesInContainerByID(long, int, int, long) 通过连接 id 在 container 中粘合形状
GlueShapeToConnectorBeginX(long, string, long) 将形状粘附到连接器的 BeginX
GlueShapeToConnectorEndX(long, string, long) 将形状粘贴到连接器的 EndX
Layout(LayoutOptions) 布置形状和/或重新布置页面的连接器。
MoveTo(int) 将页面移动到页面中的另一个位置。
SendBackward(long) 将由 ID 定义的形状移回 z 顺序中的一个位置。
SendToBack(long) 将由 ID 定义的形状移动到 z 顺序的后面。

也可以看看