Class PageAPI

Class PageAPI

ชื่อพื้นที่: Aspose.Page.XPS.Features.EventBasedModifications การประกอบ: Aspose.Page.dll (25.4.0)

The Page องค์ประกอบการเปลี่ยนแปลง API

public class PageAPI : IModificationAPI

Inheritance

object PageAPI

Implements

IModificationAPI

อนุญาโตตุลาการ

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; }

คุณสมบัติมูลค่า

float

PageCount

กลับจํานวนหน้าในเอกสารที่ใช้งาน

public int PageCount { get; }

คุณสมบัติมูลค่า

int

TotalPageCount

กลับจํานวนหน้าทั้งหมดในเอกสารทั้งหมดภายในเอกสาร XPS

public int TotalPageCount { get; }

คุณสมบัติมูลค่า

int

Utils

ได้รับวัตถุที่จัดหาสิ่งอํานวยความสะดวกนอกเหนือ API การจัดการ XPS อย่างเป็นทางการ

public DocumentUtils Utils { get; }

คุณสมบัติมูลค่า

DocumentUtils

Width

กลับ/ตั้งค่าความกว้างของหน้าที่แสดงเป็นหมายเลขจริงในหน่วยของพื้นที่การสอดคล้องที่มีประสิทธิภาพ

public float Width { get; set; }

คุณสมบัติมูลค่า

float

Methods

เพิ่ม (T)

เพิ่มองค์ประกอบเนื้อหา (Canvas, Path, หรือ Glyphs)

public T Add<t>(T element) where T : XpsContentElement

Parameters

element T

องค์ประกอบที่จะเพิ่ม

Returns

T

องค์ประกอบเพิ่ม

ประเภทพารามิเตอร์

T

ประเภทขององค์ประกอบ

AddCanvas()

เพิ่มแถบใหม่ไปยังหน้า

public XpsCanvas AddCanvas()

Returns

XpsCanvas

แถบที่เพิ่ม

AddGlyphs(สกรู, พลามิเนต, FontStyle, Float, Flate, String)

เพิ่ม glyphs ใหม่ไปยังหน้า

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 Origins X รหัส

originY float

Glyphs Origins และ Coordinate

unicodeString string

สายรัดเพื่อพิมพ์

Returns

XpsGlyphs

เพิ่ม glyphs

AddGlyphs(XpsFont, float, พื้น, ตะแกรง)

เพิ่ม glyphs ใหม่ไปยังหน้า

public XpsGlyphs AddGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, string unicodeString)

Parameters

font XpsFont

หมายเลขทรัพยากร

fontRenderingEmSize float

หมายเลขขนาด

originX float

Glyphs Origins X รหัส

originY float

Glyphs Origins และ Coordinate

unicodeString string

สายรัดเพื่อพิมพ์

Returns

XpsGlyphs

เพิ่ม glyphs

AddOutlineEntry(แหล่ง, int, int)

เพิ่มรายการออกในเอกสาร

public void AddOutlineEntry(string description, int outlineLevel, int targetPageNumber)

Parameters

description string

คําอธิบายการเข้า

outlineLevel int

ระดับ outline

targetPageNumber int

หมายเลขหน้าเป้าหมาย

AddPath(XpsPathGeometry)

เพิ่มเส้นทางใหม่ไปยังหน้า

public XpsPath AddPath(XpsPathGeometry data)

Parameters

data XpsPathGeometry

ภูมิศาสตร์ของเส้นทาง

Returns

XpsPath

เพิ่มเส้นทาง

CreateArcSegment(จุด F, SizeF, float, bool, XpsSweepDirection, Bool)

สร้าง segment arc elliptical ใหม่

public XpsArcSegment CreateArcSegment(PointF point, SizeF size, float rotationAngle, bool isLargeArc, XpsSweepDirection sweepDirection, bool isStroked = true)

Parameters

point PointF

จุดสิ้นสุดของแอลกอฮอล์

size SizeF

รั้ว x และ y ของแกน elliptical เป็นคู่ x,y

rotationAngle float

แสดงให้เห็นว่าเส้นโค้ดจะหมุนได้อย่างไรเมื่อเทียบกับระบบโค้ดปัจจุบัน

isLargeArc bool

กําหนดว่าใบมีดจะถูกดึงด้วยใบมีด 180 หรือมากกว่า

sweepDirection XpsSweepDirection

แนวทางที่เส้นใยจะถูกดึง

isStroked bool

รายละเอียดว่าการโจมตีสําหรับส่วนนี้ของเส้นทางจะถูกดึง

Returns

XpsArcSegment

ใหม่ Elliptical Arc Segment

CreateCanvas()

สร้างสายเคเบิลใหม่

public XpsCanvas CreateCanvas()

Returns

XpsCanvas

แถบใหม่

CreateColor(Color)

สร้างสีใหม่

public XpsColor CreateColor(Color color)

Parameters

color Color

ตัวอย่างสีเดิมสําหรับสี RGB

Returns

XpsColor

สีใหม่

CreateColor(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

XpsColor

สีใหม่

CreateColor(int, int, int)

สร้างสีใหม่ในพื้นที่สี sRGB

public XpsColor CreateColor(int r, int g, int b)

Parameters

r int

ส่วนประกอบสีแดง

g int

ส่วนประกอบสีเขียว

b int

ส่วนประกอบสีน้ําเงิน

Returns

XpsColor

สีใหม่

CreateColor(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

สร้างสีใหม่ในพื้นที่สี scRGB

public XpsColor CreateColor(float a, float r, float g, float b)

Parameters

a float

ส่วนประกอบสีอัลฟา

r float

ส่วนประกอบสีแดง

g float

ส่วนประกอบสีเขียว

b float

ส่วนประกอบสีน้ําเงิน

Returns

XpsColor

สีใหม่

CreateColor(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

สร้างสีใหม่ในพื้นที่สี scRGB

public XpsColor CreateColor(float r, float g, float b)

Parameters

r float

ส่วนประกอบสีแดง

g float

ส่วนประกอบสีเขียว

b float

ส่วนประกอบสีน้ําเงิน

Returns

XpsColor

สีใหม่

CreateColor(สกรู, params float[])

สร้างสีใหม่ในพื้นที่สีตาม ICC

public XpsColor CreateColor(string path, params float[] components)

Parameters

path string

เส้นทางไปยังโปรไฟล์ ICC

components float [ ]

องค์ประกอบสี

Returns

XpsColor

สีใหม่

CreateColor(XpsIccProfile, params float[])

สร้างสีใหม่ในพื้นที่สีตาม ICC

public XpsColor CreateColor(XpsIccProfile iccProfile, params float[] components)

Parameters

iccProfile XpsIccProfile

โครงสร้างโปรไฟล์ของ ICC

components float [ ]

องค์ประกอบสี

Returns

XpsColor

สีใหม่

CreateGlyphs(สกรู, พลามิเนต, FontStyle, Float, Flate, String)

สร้าง 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 Origins X รหัส

originY float

Glyphs Origins และ Coordinate

unicodeString string

สายรัดเพื่อพิมพ์

Returns

XpsGlyphs

กลิฟท์ใหม่

CreateGlyphs(XpsFont, float, พื้น, ตะแกรง)

สร้าง glyphs ใหม่

public XpsGlyphs CreateGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, string unicodeString)

Parameters

font XpsFont

หมายเลขทรัพยากร

fontRenderingEmSize float

หมายเลขขนาด

originX float

Glyphs Origins X รหัส

originY float

Glyphs Origins และ Coordinate

unicodeString string

สายรัดเพื่อพิมพ์

Returns

XpsGlyphs

กลิฟท์ใหม่

CreateGradientStop(XpsColor, เฟอร์รี่)

สร้าง Stop Gradient ใหม่

public XpsGradientStop CreateGradientStop(XpsColor color, float offset)

Parameters

color XpsColor

Gradient stop สี

offset float

Gradient คะแนน

Returns

XpsGradientStop

ปิดเกรดใหม่

CreateGradientStop(สี, float)

สร้าง Stop Gradient ใหม่

public XpsGradientStop CreateGradientStop(Color color, float offset)

Parameters

color Color

Gradient stop สี

offset float

Gradient คะแนน

Returns

XpsGradientStop

ปิดเกรดใหม่

CreateImageBrush(XpsImage, RectangleF, ใบมีด)

สร้างภาพสกรูใหม่

public XpsImageBrush CreateImageBrush(XpsImage image, RectangleF viewbox, RectangleF viewport)

Parameters

image XpsImage

วัตถุของภาพ

viewbox RectangleF

ตําแหน่งและขนาดของเนื้อหาแหล่งของแปรง

viewport RectangleF

พื้นที่ในพื้นที่ที่ประกอบด้วยความ koordinate ของ prim brushใบมีดที่ถูกนํามาใช้ (อาจเป็นครั้งคราว) เพื่อเติมพื้นที่ที่สกรูถูกนํามาใช้

Returns

XpsImageBrush

รูปภาพใหม่ Brush

CreateImageBrush(รั้ว, RectangleF)

สร้างภาพสกรูใหม่

public XpsImageBrush CreateImageBrush(string imagePath, RectangleF viewbox, RectangleF viewport)

Parameters

imagePath string

เส้นทางไปยังภาพที่จะใช้เป็นแปรง

viewbox RectangleF

ตําแหน่งและขนาดของเนื้อหาแหล่งของแปรง

viewport RectangleF

พื้นที่ในพื้นที่ที่ประกอบด้วยความ koordinate ของ prim brushใบมีดที่ถูกนํามาใช้ (อาจเป็นครั้งคราว) เพื่อเติมพื้นที่ที่สกรูถูกนํามาใช้

Returns

XpsImageBrush

รูปภาพใหม่ Brush

CreateLinearGradientBrush(รายการ, PointF, จุดF)

สร้างแปรง gradient linear ใหม่

public XpsLinearGradientBrush CreateLinearGradientBrush(List<xpsgradientstop> gradientStops, PointF startPoint, PointF endPoint)

Parameters

gradientStops List < XpsGradientStop >

รายการของ gradient stops

startPoint PointF

จุดเริ่มต้นของ gradient linear

endPoint PointF

จุดสิ้นสุดของ gradient linear

Returns

XpsLinearGradientBrush

สกรู gradient ใหม่

CreateLinearGradientBrush(PointF, PointF)

สร้างแปรง gradient linear ใหม่

public XpsLinearGradientBrush CreateLinearGradientBrush(PointF startPoint, PointF endPoint)

Parameters

startPoint PointF

จุดเริ่มต้นของ gradient linear

endPoint PointF

จุดสิ้นสุดของ gradient linear

Returns

XpsLinearGradientBrush

สกรู gradient ใหม่

CreateMatrix(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

สร้าง matrix การแปลงที่ทันสมัยใหม่

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

XpsMatrix

ใหม่แม่พิมพ์การเปลี่ยนแปลงที่สมบูรณ์

CreatePath(XpsPathGeometry)

สร้างเส้นทางใหม่

public XpsPath CreatePath(XpsPathGeometry data)

Parameters

data XpsPathGeometry

ภูมิศาสตร์ของเส้นทาง

Returns

XpsPath

เส้นทางใหม่

CreatePathFigure(PointF, บอล)

สร้างตัวเลขเส้นทางใหม่

public XpsPathFigure CreatePathFigure(PointF startPoint, bool isClosed = false)

Parameters

startPoint PointF

จุดเริ่มต้นสําหรับส่วนแรกของตัวเลขเส้นทาง

isClosed bool

แสดงให้เห็นว่าเส้นทางจะถูกปิด หากตั้งไว้เป็นจริงการโจมตีจะถูกดึง"ปิด" นั่นคือจุดสุดท้ายในส่วนสุดท้ายของตัวเลขเส้นทางเชื่อมต่อกับจุดที่ระบุไว้ในคุณสมบัติ StartPoint อื่น ๆ ปลั๊กจะถูกดึง “เปิด” และจุดสุดท้ายไม่ได้เชื่อมต่อกับจุดเริ่มต้นเท่านั้น ใช้ได้หากหมายเลขเส้นทางใช้ในองค์ประกอบเส้นทางที่ระบุการโจมตี

Returns

XpsPathFigure

หมายเลขถนนใหม่

CreatePathFigure(PointF, รายการ, บอล)

สร้างตัวเลขเส้นทางใหม่

public XpsPathFigure CreatePathFigure(PointF startPoint, List<xpspathsegment> segments, bool isClosed = false)

Parameters

startPoint PointF

จุดเริ่มต้นสําหรับส่วนแรกของตัวเลขเส้นทาง

segments List < XpsPathSegment >

รายการของเส้นทาง

isClosed bool

แสดงให้เห็นว่าเส้นทางจะถูกปิด หากตั้งไว้เป็นจริงการโจมตีจะถูกดึง"ปิด" นั่นคือจุดสุดท้ายในส่วนสุดท้ายของตัวเลขเส้นทางเชื่อมต่อกับจุดที่ระบุไว้ในคุณสมบัติ StartPoint อื่น ๆ ปลั๊กจะถูกดึง “เปิด” และจุดสุดท้ายไม่ได้เชื่อมต่อกับจุดเริ่มต้นเท่านั้น ใช้ได้หากหมายเลขเส้นทางใช้ในองค์ประกอบเส้นทางที่ระบุการโจมตี

Returns

XpsPathFigure

หมายเลขถนนใหม่

CreatePathGeometry(รั้ว)

สร้างเส้นทางใหม่ที่ระบุด้วยรูปร่างสั้น

public XpsPathGeometry CreatePathGeometry(string abbreviatedGeometry)

Parameters

abbreviatedGeometry string

รูปแบบสั้น ๆ ของเส้นทางภูมิศาสตร์

Returns

XpsPathGeometry

เส้นทางใหม่

CreatePathGeometry()

สร้างเส้นทางใหม่

public XpsPathGeometry CreatePathGeometry()

Returns

XpsPathGeometry

เส้นทางใหม่

CreatePathGeometry(รายการ)

สร้างเส้นทางใหม่ด้วยตัวเลขเส้นทางที่ระบุ

public XpsPathGeometry CreatePathGeometry(List<xpspathfigure> pathFigures)

Parameters

pathFigures List < XpsPathFigure >

รายการตัวเลขเส้นทาง

Returns

XpsPathGeometry

เส้นทางใหม่

CreatePolyBezierSegment(จุดหมายเลข[ ], บอล)

สร้างชุดใหม่ของ Curves Bézier คูบ

public XpsPolyBezierSegment CreatePolyBezierSegment(PointF[] points, bool isStroked = true)

Parameters

points PointF [ ]

จุดควบคุมสําหรับหลายส่วน Bézier

isStroked bool

รายละเอียดว่าการโจมตีสําหรับส่วนนี้ของเส้นทางจะถูกดึง

Returns

XpsPolyBezierSegment

ใหม่คูบ Bézier รอบ segment

CreatePolyLineSegment(จุดหมายเลข[ ], บอล)

สร้างภาพมัลติแกนใหม่ที่มีจํานวนของแนวตั้งแต่ละตัว

public XpsPolyLineSegment CreatePolyLineSegment(PointF[] points, bool isStroked = true)

Parameters

points PointF [ ]

ชุดโค้ดสําหรับส่วนหลายที่กําหนดส่วนเส้นโพลี

isStroked bool

รายละเอียดว่าการโจมตีสําหรับส่วนนี้ของเส้นทางจะถูกดึง

Returns

XpsPolyLineSegment

ชิ้นส่วนการวาดภาพโพลีแกนใหม่

CreatePolyQuadraticBezierSegment(จุดหมายเลข[ ], บอล)

สร้างชุดใหม่ของ Curves Bézier quadratic จากจุดก่อนหน้านี้ในตัวเลขทางผ่านชุดของแนวตั้ง, ใช้จุดควบคุมที่ระบุ

public XpsPolyQuadraticBezierSegment CreatePolyQuadraticBezierSegment(PointF[] points, bool isStroked = true)

Parameters

points PointF [ ]

จุดควบคุมสําหรับส่วน Bézier สี่เหลี่ยมหลาย

isStroked bool

รายละเอียดว่าการโจมตีสําหรับส่วนนี้ของเส้นทางจะถูกดึง

Returns

XpsPolyQuadraticBezierSegment

ใหม่สี่เหลี่ยม Bézier รอบ segment

CreateRadialGradientBrush(รายการ, PointF, Point F, เฟอร์รี่)

สร้างสกรู radial gradient ใหม่

public XpsRadialGradientBrush CreateRadialGradientBrush(List<xpsgradientstop> gradientStops, PointF center, PointF gradientOrigin, float radiusX, float radiusY)

Parameters

gradientStops List < XpsGradientStop >

รายการของ gradient stops

center PointF

จุดกลางของ gradient radial (คือศูนย์ของ ellipse)

gradientOrigin PointF

จุดกําเนิดของ gradient radial

radiusX float

แรงดันไฟฟ้าในขนาด x ของ ellipse ซึ่งกําหนดเกรด radial

radiusY float

แรงดันไฟฟ้าในขนาด y ของ ellipse ซึ่งกําหนดเกรด radial

Returns

XpsRadialGradientBrush

ใหม่ Radial Gradient Brush

CreateRadialGradientBrush(จุด F, PointF, Float, float)

สร้างสกรู radial gradient ใหม่

public XpsRadialGradientBrush CreateRadialGradientBrush(PointF center, PointF gradientOrigin, float radiusX, float radiusY)

Parameters

center PointF

จุดกลางของ gradient radial (คือศูนย์ของ ellipse)

gradientOrigin PointF

จุดกําเนิดของ gradient radial

radiusX float

แรงดันไฟฟ้าในขนาด x ของ ellipse ซึ่งกําหนดเกรด radial

radiusY float

แรงดันไฟฟ้าในขนาด y ของ ellipse ซึ่งกําหนดเกรด radial

Returns

XpsRadialGradientBrush

ใหม่ Radial Gradient Brush

CreateSolidColorBrush(XpsColor)

สร้างแปรงสีใหม่ที่แข็งแกร่ง

public XpsSolidColorBrush CreateSolidColorBrush(XpsColor color)

Parameters

color XpsColor

สีสําหรับองค์ประกอบที่เต็มไปด้วย

Returns

XpsSolidColorBrush

สร้อยข้อมือสีใหม่

CreateSolidColorBrush(Color)

สร้างแปรงสีใหม่ที่แข็งแกร่ง

public XpsSolidColorBrush CreateSolidColorBrush(Color color)

Parameters

color Color

สีสําหรับองค์ประกอบที่เต็มไปด้วย

Returns

XpsSolidColorBrush

สร้อยข้อมือสีใหม่

CreateVisualBrush(XpsContentElement, RectangleF, ใบมีด)

สร้างรูปลักษณ์ใหม่

public XpsVisualBrush CreateVisualBrush(XpsContentElement element, RectangleF viewbox, RectangleF viewport)

Parameters

element XpsContentElement

ชิ้นส่วน XPS (Canvas, Path หรือ Glyphs) สําหรับคุณสมบัติภาพจากแปรงภาพ

viewbox RectangleF

ตําแหน่งและขนาดของเนื้อหาแหล่งของแปรง

viewport RectangleF

พื้นที่ในพื้นที่ที่ประกอบด้วยความ koordinate ของ prim brushใบมีดที่ถูกนํามาใช้ (อาจเป็นครั้งคราว) เพื่อเติมพื้นที่ที่สกรูถูกนํามาใช้

Returns

XpsVisualBrush

ใหม่ Visual Brush

แปลง (int, 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(int)

ใส่ช่องใหม่ไปยังหน้าในตําแหน่ง index"

public XpsCanvas InsertCanvas(int index)

Parameters

index int

ตําแหน่งที่ควรใส่ถังใหม่

Returns

XpsCanvas

แถบใส่

InsertGlyphs(int, string, float, FontStyle, flate, เฟอร์รี่)

ใส่ glyphs ใหม่ในหน้าในตําแหน่ง index"

public XpsGlyphs InsertGlyphs(int index, string fontFamily, float fontSize, FontStyle fontStyle, float originX, float originY, string unicodeString)

Parameters

index int

ตําแหน่งที่ควรใส่ glyphs ใหม่

fontFamily string

หมายเลขครอบครัว

fontSize float

หมายเลขขนาด

fontStyle FontStyle

สไตล์การเขียน

originX float

Glyphs Origins X รหัส

originY float

Glyphs Origins และ Coordinate

unicodeString string

สายรัดเพื่อพิมพ์

Returns

XpsGlyphs

ใส่ glyphs

InsertGlyphs(int, XpsFont, float, เฟอร์นิเจอร์)

ใส่ glyphs ใหม่ในหน้าในตําแหน่ง index"

public XpsGlyphs InsertGlyphs(int index, XpsFont font, float fontSize, float originX, float originY, string unicodeString)

Parameters

index int

ตําแหน่งที่ควรใส่ glyphs ใหม่

font XpsFont

หมายเลขทรัพยากร

fontSize float

หมายเลขขนาด

originX float

Glyphs Origins X รหัส

originY float

Glyphs Origins และ Coordinate

unicodeString string

สายรัดเพื่อพิมพ์

Returns

XpsGlyphs

ใส่ glyphs

InsertPath(int, XpsPathGeometry)

ใส่เส้นทางใหม่ไปยังหน้าในตําแหน่ง index"

public XpsPath InsertPath(int index, XpsPathGeometry data)

Parameters

index int

ตําแหน่งที่ควรใส่เส้นทางใหม่

data XpsPathGeometry

ภูมิศาสตร์ของเส้นทาง

Returns

XpsPath

ขั้นตอนที่กําหนด

ลบ (T)

ลบองค์ประกอบจากหน้า

public T Remove<t>(T element) where T : XpsContentElement

Parameters

element T

องค์ประกอบที่ต้องลบ

Returns

T

องค์ประกอบที่ถอดออก

ประเภทพารามิเตอร์

T

ประเภทขององค์ประกอบ

RemoveAt(int)

ลบองค์ประกอบในตําแหน่ง index" จากหน้า

public XpsContentElement RemoveAt(int index)

Parameters

index int

ตําแหน่งที่องค์ประกอบที่ควรลบ

Returns

XpsContentElement

องค์ประกอบที่ถอดออก

 แบบไทย