Class PageAPI
名称: Aspose.Page.XPS.Features.EventBasedModifications 集合: Aspose.Page.dll (25.4.0)
The Page 元素改造 API。
public class PageAPI : IModificationAPI
Inheritance
Implements
继承人
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
Height
返回/设置页面高度,表达为真实数字在有效协调空间的单位。
public float Height { get; set; }
财产价值
PageCount
返回活跃文件中的页数。
public int PageCount { get; }
财产价值
TotalPageCount
返回所有 XPS 文档中的页面总数。
public int TotalPageCount { get; }
财产价值
Utils
接收提供超越正式 XPS 操作 API 的工具的对象。
public DocumentUtils Utils { get; }
财产价值
Width
返回/设置页面宽度,表达为真实的数字有效协调空间的单位。
public float Width { get; set; }
财产价值
Methods
添加T>(T)
添加内容元素(Canvas、Path 或 Glyphs)。
public T Add<t>(T element) where T : XpsContentElement
Parameters
element
T
要添加的元素
Returns
T
添加元素。
类型参数
T
元素的类型。
AddCanvas()
在页面上添加一个新的字符串。
public XpsCanvas AddCanvas()
Returns
添加可口可乐
AddGlyphs(字符串、字符串、字符串、字符串、字符串)
添加新格里夫到页面。
public XpsGlyphs AddGlyphs(string fontFamily, float fontRenderingEmSize, FontStyle fontStyle, float originX, float originY, string unicodeString)
Parameters
fontFamily
string
字母家庭。
fontRenderingEmSize
float
字体大小
fontStyle
FontStyle
字体风格。
originX
float
Glyphs 起源 X 坐标。
originY
float
Glyphs 起源 Y 协调。
unicodeString
string
打印的线条。
Returns
添加Glyphs
AddGlyphs(XpsFont, float, float, float, string)
添加新格里夫到页面。
public XpsGlyphs AddGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, string unicodeString)
Parameters
font
XpsFont
字体资源。
fontRenderingEmSize
float
字体大小
originX
float
Glyphs 起源 X 坐标。
originY
float
Glyphs 起源 Y 协调。
unicodeString
string
打印的线条。
Returns
添加Glyphs
AddOutlineEntry(字体, int, int)
添加一个输入文档的输入。
public void AddOutlineEntry(string description, int outlineLevel, int targetPageNumber)
Parameters
description
string
入口描述。
outlineLevel
int
出口水平。
targetPageNumber
int
目标页数。
AddPath(XpsPathGeometry)
添加一个新的路径到页面。
public XpsPath AddPath(XpsPathGeometry data)
Parameters
data
XpsPathGeometry
路径的地质。
Returns
添加路径
CreateArcSegment(PointF, SizeF, float, bool, XpsSweepDirection, bool)
创建一个新的精密弓部分。
public XpsArcSegment CreateArcSegment(PointF point, SizeF size, float rotationAngle, bool isLargeArc, XpsSweepDirection sweepDirection, bool isStroked = true)
Parameters
point
PointF
是精密弓的终点。
size
SizeF
以 x 和 y 射线为 x,y 对。
rotationAngle
float
它指示了对现行坐标系统的旋转方式。
isLargeArc
bool
确定弓是否以180或更大的螺旋拖动。
sweepDirection
XpsSweepDirection
它是指向弓的方向。
isStroked
bool
指定是否对这条路线部分的冲击被拖动。
Returns
新的精密弓序列。
CreateCanvas()
创建一个新的通道。
public XpsCanvas CreateCanvas()
Returns
新的Canvas
CreateColor(Color)
创造一个新的颜色。
public XpsColor CreateColor(Color color)
Parameters
color
Color
原生颜色例子为RGB颜色。
Returns
新色彩。
CreateColor(int , int , int , int , int)
在 sRGB 颜色空间中创建新颜色。
public XpsColor CreateColor(int a, int r, int g, int b)
Parameters
a
int
阿尔法颜色组成部分
r
int
红色组件。
g
int
绿色组件。
b
int
蓝色组成部分。
Returns
新色彩。
CreateColor(int , int , int , int)
在 sRGB 颜色空间中创建新颜色。
public XpsColor CreateColor(int r, int g, int b)
Parameters
r
int
红色组件。
g
int
绿色组件。
b
int
蓝色组成部分。
Returns
新色彩。
CreateColor(航海、航海、航海、航海)
在 scRGB 颜色空间中创建新颜色。
public XpsColor CreateColor(float a, float r, float g, float b)
Parameters
a
float
阿尔法颜色组成部分
r
float
红色组件。
g
float
绿色组件。
b
float
蓝色组成部分。
Returns
新色彩。
CreateColor(航海、航海、航海)
在 scRGB 颜色空间中创建新颜色。
public XpsColor CreateColor(float r, float g, float b)
Parameters
r
float
红色组件。
g
float
绿色组件。
b
float
蓝色组成部分。
Returns
新色彩。
CreateColor(字符串, params float[])
创建新的颜色在基于ICC的颜色空间。
public XpsColor CreateColor(string path, params float[] components)
Parameters
path
string
走向国际刑事法院的路径。
components
float
( )
颜色组件。
Returns
新色彩。
CreateColor(XpsIccProfile, Params 浮动[])
创建新的颜色在基于ICC的颜色空间。
public XpsColor CreateColor(XpsIccProfile iccProfile, params float[] components)
Parameters
iccProfile
XpsIccProfile
ICC的资料来源。
components
float
( )
颜色组件。
Returns
新色彩。
CreateGlyphs(字符串、字符串、字符串、字符串、字符串)
创造新的Glyphs。
public XpsGlyphs CreateGlyphs(string fontFamily, float fontRenderingEmSize, FontStyle fontStyle, float originX, float originY, string unicodeString)
Parameters
fontFamily
string
字母家庭。
fontRenderingEmSize
float
字体大小
fontStyle
FontStyle
字体风格。
originX
float
Glyphs 起源 X 坐标。
originY
float
Glyphs 起源 Y 协调。
unicodeString
string
打印的线条。
Returns
新格里夫。
CreateGlyphs(XpsFont, float, float, float, string)
创造新的Glyphs。
public XpsGlyphs CreateGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, string unicodeString)
Parameters
font
XpsFont
字体资源。
fontRenderingEmSize
float
字体大小
originX
float
Glyphs 起源 X 坐标。
originY
float
Glyphs 起源 Y 协调。
unicodeString
string
打印的线条。
Returns
新格里夫。
CreateGradientStop(XpsColor,浮动)
创建一个新的格拉迪安站。
public XpsGradientStop CreateGradientStop(XpsColor color, float offset)
Parameters
color
XpsColor
格拉迪特停止颜色。
offset
float
格拉迪特的折扣。
Returns
新格拉迪特停车
CreateGradientStop(颜色,浮动)
创建一个新的格拉迪安站。
public XpsGradientStop CreateGradientStop(Color color, float offset)
Parameters
color
Color
格拉迪特停止颜色。
offset
float
格拉迪特的折扣。
Returns
新格拉迪特停车
CreateImageBrush(XpsImage、RectangleF、RectangleF)
创建一个新的图像刷。
public XpsImageBrush CreateImageBrush(XpsImage image, RectangleF viewbox, RectangleF viewport)
Parameters
image
XpsImage
一个图像资源。
viewbox
RectangleF
刷子的源内容的位置和尺寸。
viewport
RectangleF
包含首批刷子协调空间的区域用于(可能重复)填充刷子所应用的区域的板块
Returns
新图像刷子
CreateImageBrush(字符串, RectangleF, RectangleF)
创建一个新的图像刷。
public XpsImageBrush CreateImageBrush(string imagePath, RectangleF viewbox, RectangleF viewport)
Parameters
imagePath
string
走向图像的路要像刷刀一样。
viewbox
RectangleF
刷子的源内容的位置和尺寸。
viewport
RectangleF
包含首批刷子协调空间的区域用于(可能重复)填充刷子所应用的区域的板块
Returns
新图像刷子
CreateLinearGradientBrush(列表, PointF , PointF)
创建一个新的线性格拉迪特刷子。
public XpsLinearGradientBrush CreateLinearGradientBrush(List<xpsgradientstop> gradientStops, PointF startPoint, PointF endPoint)
Parameters
gradientStops
List
<
XpsGradientStop
>
格拉迪特的名单停止了。
startPoint
PointF
是线性格拉迪安的起点。
endPoint
PointF
线性格拉迪安特的终点。
Returns
新线性格拉迪特刷子
CreateLinearGradientBrush(点F、点F)
创建一个新的线性格拉迪特刷子。
public XpsLinearGradientBrush CreateLinearGradientBrush(PointF startPoint, PointF endPoint)
Parameters
startPoint
PointF
是线性格拉迪安的起点。
endPoint
PointF
线性格拉迪安特的终点。
Returns
新线性格拉迪特刷子
CreateMatrix(航海、航海、航海、航海、航海、航海)
创建一个新的精致转型矩阵。
public XpsMatrix CreateMatrix(float m11, float m12, float m21, float m22, float m31, float m32)
Parameters
m11
float
元素11。
m12
float
元素12
m21
float
元素21
m22
float
第22集
m31
float
元素31
m32
float
第32集
Returns
新的精致转型矩阵。
CreatePath(XpsPathGeometry)
创造一个新的道路。
public XpsPath CreatePath(XpsPathGeometry data)
Parameters
data
XpsPathGeometry
路径的地质。
Returns
新路。
CreatePathFigure(波尔,波尔)
创建一个新的路径图。
public XpsPathFigure CreatePathFigure(PointF startPoint, bool isClosed = false)
Parameters
startPoint
PointF
路径数字的第一部分的起点。
isClosed
bool
指定道路是否关闭,如果设置为真实,冲击被拖动“关闭”,也就是说,路径图的最后部分的最后点与在 StartPoint 属性中指定的点,否则冲击将被“打开”,并且最后点不连接到起点,仅适用于路径数字使用在路径元素,指定一个中风。
Returns
新路数。
CreatePathFigure(PointF, 列表, 博尔)
创建一个新的路径图。
public XpsPathFigure CreatePathFigure(PointF startPoint, List<xpspathsegment> segments, bool isClosed = false)
Parameters
startPoint
PointF
路径数字的第一部分的起点。
segments
List
<
XpsPathSegment
>
路径分区列表。
isClosed
bool
指定道路是否关闭,如果设置为真实,冲击被拖动“关闭”,也就是说,路径图的最后部分的最后点与在 StartPoint 属性中指定的点,否则冲击将被“打开”,并且最后点不连接到起点,仅适用于路径数字使用在路径元素,指定一个中风。
Returns
新路数。
CreatePathGeometry(线条)
创建一个新的路径地质,以简短的形状指定。
public XpsPathGeometry CreatePathGeometry(string abbreviatedGeometry)
Parameters
abbreviatedGeometry
string
简短的路径地质形状。
Returns
新路径地质学
CreatePathGeometry()
创造一个新的路径地质学。
public XpsPathGeometry CreatePathGeometry()
Returns
新路径地质学
CreatePathGeometry(列表)
创建一个新的路径地质与指定的路径数字列表。
public XpsPathGeometry CreatePathGeometry(List<xpspathfigure> pathFigures)
Parameters
pathFigures
List
<
XpsPathFigure
>
路径数字列表
Returns
新路径地质学
CreatePolyBezierSegment(点数( ), 博尔)
创建一个新的圆形Bézier曲线集。
public XpsPolyBezierSegment CreatePolyBezierSegment(PointF[] points, bool isStroked = true)
Parameters
points
PointF
( )
多个Bézier分区的控制点。
isStroked
bool
指定是否对这条路线部分的冲击被拖动。
Returns
新圆形Bézier曲线部分。
CreatePolyLineSegment(点数( ), 博尔)
创建一个新的多角绘图,包含一个自愿的数量的个别垂直。
public XpsPolyLineSegment CreatePolyLineSegment(PointF[] points, bool isStroked = true)
Parameters
points
PointF
( )
定义多线部分的多部分的坐标集。
isStroked
bool
指定是否对这条路线部分的冲击被拖动。
Returns
新的多角绘画部分。
CreatePolyQuadraticBezierSegment(点数( ), 博尔)
创建一个新的组合的四角形Bézier曲线从前一个点在路径图通过一个组使用指定的控制点。
public XpsPolyQuadraticBezierSegment CreatePolyQuadraticBezierSegment(PointF[] points, bool isStroked = true)
Parameters
points
PointF
( )
控制点为多个四方Bézier分区。
isStroked
bool
指定是否对这条路线部分的冲击被拖动。
Returns
新四角形Bézier曲线部分。
CreateRadialGradientBrush(列表, PointF , PointF , 浮动 , 浮动)
创建一个新的放射性格拉迪特刷子。
public XpsRadialGradientBrush CreateRadialGradientBrush(List<xpsgradientstop> gradientStops, PointF center, PointF gradientOrigin, float radiusX, float radiusY)
Parameters
gradientStops
List
<
XpsGradientStop
>
格拉迪特的名单停止了。
center
PointF
放射性格拉迪安特的中心点(即精子的中心点)。
gradientOrigin
PointF
放射性格拉迪安的起源点。
radiusX
float
射线在 x 尺寸的精子,定义的射线格拉迪安特。
radiusY
float
射线在<i尺寸的精子定义的射线格拉迪安特。
Returns
新放射性格拉迪特刷子
CreateRadialGradientBrush(点F、点F、浮动、浮动)
创建一个新的放射性格拉迪特刷子。
public XpsRadialGradientBrush CreateRadialGradientBrush(PointF center, PointF gradientOrigin, float radiusX, float radiusY)
Parameters
center
PointF
放射性格拉迪安特的中心点(即精子的中心点)。
gradientOrigin
PointF
放射性格拉迪安的起源点。
radiusX
float
射线在 x 尺寸的精子,定义的射线格拉迪安特。
radiusY
float
射线在<i尺寸的精子定义的射线格拉迪安特。
Returns
新放射性格拉迪特刷子
CreateSolidColorBrush(XpsColor)
创建一个坚固的颜色刷子。
public XpsSolidColorBrush CreateSolidColorBrush(XpsColor color)
Parameters
color
XpsColor
填满的元素的颜色。
Returns
新的固体颜色刷子
CreateSolidColorBrush(Color)
创建一个坚固的颜色刷子。
public XpsSolidColorBrush CreateSolidColorBrush(Color color)
Parameters
color
Color
填满的元素的颜色。
Returns
新的固体颜色刷子
CreateVisualBrush(XpsContentElement、RectangleF、RectangleF)
创建一个新的视觉刷子。
public XpsVisualBrush CreateVisualBrush(XpsContentElement element, RectangleF viewbox, RectangleF viewport)
Parameters
element
XpsContentElement
XPS 元素(Canvas、Path 或 Glyphs)用于视觉属性或视觉刷。
viewbox
RectangleF
刷子的源内容的位置和尺寸。
viewport
RectangleF
包含首批刷子协调空间的区域用于(可能重复)填充刷子所应用的区域的板块
Returns
新视觉刷子
插入T>(T、T、T)
将元素(Canvas、Path 或 Glyphs)插入页面 index 位置。
public T Insert<t>(int index, T element) where T : XpsContentElement
Parameters
index
int
应该输入一个 element’ 的位置。
element
T
要插入的元素。
Returns
T
插入元素。
类型参数
T
元素的类型。
InsertCanvas(因特)
在 index" 位置插入页面的新字符串。
public XpsCanvas InsertCanvas(int index)
Parameters
index
int
位置,应该插入一个新的管道。
Returns
插入的管道。
InsertGlyphs(int, string, float, FontStyle, float, float, string)
在 index 位置插入新格利夫。
public XpsGlyphs InsertGlyphs(int index, string fontFamily, float fontSize, FontStyle fontStyle, float originX, float originY, string unicodeString)
Parameters
index
int
在哪个位置要插入新格利夫。
fontFamily
string
字母家庭。
fontSize
float
字体大小
fontStyle
FontStyle
字体风格。
originX
float
Glyphs 起源 X 坐标。
originY
float
Glyphs 起源 Y 协调。
unicodeString
string
打印的线条。
Returns
插入Glyphs。
InsertGlyphs(int, XpsFont, float, float, float, string)
在 index 位置插入新格利夫。
public XpsGlyphs InsertGlyphs(int index, XpsFont font, float fontSize, float originX, float originY, string unicodeString)
Parameters
index
int
在哪个位置要插入新格利夫。
font
XpsFont
字体资源。
fontSize
float
字体大小
originX
float
Glyphs 起源 X 坐标。
originY
float
Glyphs 起源 Y 协调。
unicodeString
string
打印的线条。
Returns
插入Glyphs。
InsertPath(int,XpsPath地质学)
在 index 位置输入新路径到页面。
public XpsPath InsertPath(int index, XpsPathGeometry data)
Parameters
index
int
一个新的路径应该被插入的位置。
data
XpsPathGeometry
路径的地质。
Returns
插入的路径
移除(T)
从页面上删除一个元素。
public T Remove<t>(T element) where T : XpsContentElement
Parameters
element
T
要移除的元素。
Returns
T
删除元素。
类型参数
T
元素的类型。
RemoveAt(因特)
从页面中删除 index 位置的元素。
public XpsContentElement RemoveAt(int index)
Parameters
index
int
哪个元素应该被移除。
Returns
删除元素。