Class XpsDocument
ชื่อพื้นที่: Aspose.Page.XPS การประกอบ: Aspose.Page.dll (25.5.0)
หลักของเอกสาร XPS ที่ให้การจัดการวิธีการสําหรับองค์ประกอบ XPS ทั้งหมด
public sealed class XpsDocument : Document, IDisposableInheritance
object ← Document ← XpsDocument
Implements
อนุญาโตตุลาการ
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
XpsDocument()
สร้างเอกสาร XPS ว่างเปล่าที่มีขนาดหน้าแบบกําหนดเอง
public XpsDocument()XpsDocument(รั้ว)
เปิดเอกสาร XPS ที่อยู่ใน path"
public XpsDocument(string path)Parameters
path string
ตําแหน่งของเอกสาร
XpsDocument(ลวด, LoadOptions)
เปิดเอกสารที่มีอยู่ที่อยู่ใน path’ เป็นเอกสาร XPS
public XpsDocument(string path, LoadOptions options)Parameters
path string
ตําแหน่งของเอกสาร
options LoadOptions
ตัวเลือกการโหลดเอกสาร
XpsDocument(แหล่งจ่ายไฟ LoadOptions)
ดาวน์โหลดเอกสารที่มีอยู่ที่เก็บไว้ใน stream’ เป็นเอกสาร XPS
public XpsDocument(Stream stream, LoadOptions options)Parameters
stream Stream
กระแสเอกสาร
options LoadOptions
ตัวเลือกการโหลดเอกสาร
Properties
ActiveDocument
รับหมายเลขเอกสารที่ใช้งานได้
public int ActiveDocument { get; }คุณสมบัติมูลค่า
ActivePage
รับหมายเลขหน้าที่ใช้งานภายในเอกสารที่ใช้งาน
public int ActivePage { get; }คุณสมบัติมูลค่า
DocumentCount
กลับจํานวนเอกสารภายในแพคเกจ XPS
public int DocumentCount { get; }คุณสมบัติมูลค่า
JobPrintTicket
ตั๋วพิมพ์งานของเอกสาร Returns / Set
public JobPrintTicket JobPrintTicket { get; set; }คุณสมบัติมูลค่า
Page
กลับตัวอย่าง Aspose.Page.XPS.XpsModel.XpsPage สําหรับหน้าใช้งาน
public XpsPage Page { get; }คุณสมบัติมูลค่า
PageCount
กลับจํานวนหน้าในเอกสารที่ใช้งาน
public int PageCount { get; }คุณสมบัติมูลค่า
TotalPageCount
กลับจํานวนหน้าทั้งหมดในเอกสารทั้งหมดภายในเอกสาร XPS
public int TotalPageCount { get; }คุณสมบัติมูลค่า
Utils
ได้รับวัตถุที่จัดหาสิ่งอํานวยความสะดวกนอกเหนือ API การจัดการ XPS อย่างเป็นทางการ
public DocumentUtils Utils { get; }คุณสมบัติมูลค่า
Methods
เพิ่ม (T)
เพิ่มองค์ประกอบเนื้อหา (Canvas, Path, หรือ Glyphs)
public T Add<t>(T element) where T : XpsContentElementParameters
element T
องค์ประกอบที่จะเพิ่ม
Returns
T
องค์ประกอบเพิ่ม
ประเภทพารามิเตอร์
T
ประเภทขององค์ประกอบ
AddCanvas()
เพิ่มช่องทางใหม่ไปยังหน้าใช้งาน
public XpsCanvas AddCanvas()Returns
แถบที่เพิ่ม
AddDocument(บอล)
เพิ่มเอกสารที่ว่างเปล่าที่มีขนาดหน้าแบบกําหนดเอง
public void AddDocument(bool activate = true)Parameters
activate bool
ป้ายแสดงให้เห็นว่าจะเลือกเอกสารที่เพิ่มเป็นกิจกรรม
AddDocument(พลามิเนต, บอล)
เพิ่มเอกสารที่ว่างเปล่าที่มีขนาดหน้าแรก width’ และ height'.
public void AddDocument(float width, float height, bool activate = true)Parameters
width float
ความกว้างของหน้าแรก
height float
ความสูงของหน้าแรก
activate bool
ป้ายแสดงให้เห็นว่าจะเลือกเอกสารที่เพิ่มเป็นกิจกรรม
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
เพิ่ม 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
เพิ่ม glyphs
AddOutlineEntry(string, int, XpsHyperlinkTarget)
เพิ่มรายการออกในเอกสาร
public void AddOutlineEntry(string description, int outlineLevel, XpsHyperlinkTarget target)Parameters
description string
คําอธิบายการเข้า
outlineLevel int
ระดับ outline
target XpsHyperlinkTarget
เป้าหมายการเข้า
AddPage(บอล)
เพิ่มหน้าว่างเปล่าไปยังเอกสารที่มีขนาดหน้าแบบกําหนดเอง
public XpsPage AddPage(bool activate = true)Parameters
activate bool
ป้ายแสดงให้เห็นว่าคุณควรเลือกหน้าเพิ่มเป็นกิจกรรมหรือไม่
Returns
หน้าที่เพิ่ม
AddPage(พลามิเนต, บอล)
เพิ่มหน้าว่างเปล่าไปยังเอกสารที่มี width" และ height" ที่ระบุไว้
public XpsPage AddPage(float width, float height, bool activate = true)Parameters
width float
ความกว้างของหน้าใหม่
height float
ความสูงของหน้าใหม่
activate bool
ป้ายแสดงให้เห็นว่าคุณควรเลือกหน้าเพิ่มเป็นกิจกรรมหรือไม่
Returns
หน้าที่เพิ่ม
AddPage(XpsPage, บอล)
เพิ่มหน้าไปยังเอกสาร
public XpsPage AddPage(XpsPage page, bool activate = true)Parameters
page XpsPage
หน้าที่เพิ่ม
activate bool
ป้ายแสดงให้เห็นว่าคุณควรเลือกหน้าเพิ่มเป็นกิจกรรมหรือไม่
Returns
หน้าที่เพิ่ม
AddPath(XpsPathGeometry)
เพิ่มเส้นทางใหม่ไปยังหน้าใช้งาน
public XpsPath AddPath(XpsPathGeometry data)Parameters
data XpsPathGeometry
ภูมิศาสตร์ของเส้นทาง
Returns
เพิ่มเส้นทาง
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
ใหม่ Elliptical Arc Segment
CreateCanvas()
สร้างสายเคเบิลใหม่
public XpsCanvas CreateCanvas()Returns
แถบใหม่
CreateColor(Color)
สร้างสีใหม่
public XpsColor CreateColor(Color color)Parameters
color Color
ตัวอย่างสีเดิมสําหรับสี RGB
Returns
สีใหม่
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
สีใหม่
CreateColor(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
เส้นทางไปยังโปรไฟล์ ICC
components float
[ ]
องค์ประกอบสี
Returns
สีใหม่
CreateColor(XpsIccProfile, params float[])
สร้างสีใหม่ในพื้นที่สีตาม ICC
public XpsColor CreateColor(XpsIccProfile iccProfile, params float[] components)Parameters
iccProfile XpsIccProfile
โครงสร้างโปรไฟล์ของ ICC
components float
[ ]
องค์ประกอบสี
Returns
สีใหม่
CreateFont(สกรู, FontStyle)
สร้างทรัพยากร font TrueType ใหม่
public XpsFont CreateFont(string fontFamily, FontStyle fontStyle)Parameters
fontFamily string
ครอบครัว font
fontStyle FontStyle
สไตล์ font
Returns
ใหม่ TrueType Font Resource
CreateFont(Stream)
สร้างทรัพยากร font TrueType ใหม่ออกจากการไหล
public XpsFont CreateFont(Stream stream)Parameters
stream Stream
กระแสที่มีโปรไฟล์ของ ICC ต้องใช้เป็นทรัพยากร
Returns
ใหม่ TrueType Font Resource
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
กลิฟท์ใหม่
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
กลิฟท์ใหม่
CreateGradientStop(XpsColor, เฟอร์รี่)
สร้าง Stop Gradient ใหม่
public XpsGradientStop CreateGradientStop(XpsColor color, float offset)Parameters
color XpsColor
Gradient stop สี
offset float
Gradient คะแนน
Returns
ปิดเกรดใหม่
CreateGradientStop(สี, float)
สร้าง Stop Gradient ใหม่
public XpsGradientStop CreateGradientStop(Color color, float offset)Parameters
color Color
Gradient stop สี
offset float
Gradient คะแนน
Returns
ปิดเกรดใหม่
CreateIccProfile(รั้ว)
สร้างทรัพยากรโปรไฟล์ ICC ใหม่จากไฟล์โปรไฟล์ ICC ที่ตั้งอยู่ใน iccProfilePath'.
public XpsIccProfile CreateIccProfile(string iccProfilePath)Parameters
iccProfilePath string
เส้นทางไปยังโปรไฟล์ของ ICC เพื่อใช้เป็นทรัพยากร
Returns
โพสต์โปรไฟล์ ICC ใหม่
CreateIccProfile(Stream)
สร้างทรัพยากรโปรไฟล์ ICC ใหม่จาก stream'.
public XpsIccProfile CreateIccProfile(Stream stream)Parameters
stream Stream
กระแสที่มีโปรไฟล์ของ ICC ต้องใช้เป็นทรัพยากร
Returns
โพสต์โปรไฟล์ ICC ใหม่
CreateImage(รั้ว)
สร้างทรัพยากรภาพใหม่จากไฟล์ภาพที่อยู่ใน imagePath'.
public XpsImage CreateImage(string imagePath)Parameters
imagePath string
เส้นทางไปยังภาพที่จะใช้เป็นทรัพยากร
Returns
วัตถุใหม่ของภาพ
CreateImage(Stream)
สร้างทรัพยากรภาพใหม่จาก stream'.
public XpsImage CreateImage(Stream stream)Parameters
stream Stream
กระแสที่มีภาพที่จะใช้เป็นทรัพยากร
Returns
วัตถุใหม่ของภาพ
CreateImageBrush(XpsImage, RectangleF, ใบมีด)
สร้างภาพสกรูใหม่
public XpsImageBrush CreateImageBrush(XpsImage image, RectangleF viewbox, RectangleF viewport)Parameters
image XpsImage
วัตถุของภาพ
viewbox RectangleF
ตําแหน่งและขนาดของเนื้อหาแหล่งของแปรง
viewport RectangleF
พื้นที่ในพื้นที่ที่ประกอบด้วยความ koordinate ของ prim brushใบมีดที่ถูกนํามาใช้ (อาจเป็นครั้งคราว) เพื่อเติมพื้นที่ที่สกรูถูกนํามาใช้
Returns
รูปภาพใหม่ Brush
CreateImageBrush(รั้ว, RectangleF)
สร้างภาพสกรูใหม่
public XpsImageBrush CreateImageBrush(string imagePath, RectangleF viewbox, RectangleF viewport)Parameters
imagePath string
เส้นทางไปยังภาพที่จะใช้เป็นแปรง
viewbox RectangleF
ตําแหน่งและขนาดของเนื้อหาแหล่งของแปรง
viewport RectangleF
พื้นที่ในพื้นที่ที่ประกอบด้วยความ koordinate ของ prim brushใบมีดที่ถูกนํามาใช้ (อาจเป็นครั้งคราว) เพื่อเติมพื้นที่ที่สกรูถูกนํามาใช้
Returns
รูปภาพใหม่ 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
สกรู gradient ใหม่
CreateLinearGradientBrush(PointF, PointF)
สร้างแปรง gradient linear ใหม่
public XpsLinearGradientBrush CreateLinearGradientBrush(PointF startPoint, PointF endPoint)Parameters
startPoint PointF
จุดเริ่มต้นของ gradient linear
endPoint PointF
จุดสิ้นสุดของ gradient linear
Returns
สกรู 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
ใหม่แม่พิมพ์การเปลี่ยนแปลงที่สมบูรณ์
CreatePath(XpsPathGeometry)
สร้างเส้นทางใหม่
public XpsPath CreatePath(XpsPathGeometry data)Parameters
data XpsPathGeometry
ภูมิศาสตร์ของเส้นทาง
Returns
เส้นทางใหม่
CreatePathFigure(PointF, บอล)
สร้างตัวเลขเส้นทางใหม่
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(จุดหมายเลข[ ], บอล)
สร้างชุดใหม่ของ Curves Bézier คูบ
public XpsPolyBezierSegment CreatePolyBezierSegment(PointF[] points, bool isStroked = true)Parameters
points PointF
[ ]
จุดควบคุมสําหรับหลายส่วน Bézier
isStroked bool
รายละเอียดว่าการโจมตีสําหรับส่วนนี้ของเส้นทางจะถูกดึง
Returns
ใหม่คูบ Bézier รอบ segment
CreatePolyLineSegment(จุดหมายเลข[ ], บอล)
สร้างภาพมัลติแกนใหม่ที่มีจํานวนของแนวตั้งแต่ละตัว
public XpsPolyLineSegment CreatePolyLineSegment(PointF[] points, bool isStroked = true)Parameters
points PointF
[ ]
ชุดโค้ดสําหรับส่วนหลายที่กําหนดส่วนเส้นโพลี
isStroked bool
รายละเอียดว่าการโจมตีสําหรับส่วนนี้ของเส้นทางจะถูกดึง
Returns
ชิ้นส่วนการวาดภาพโพลีแกนใหม่
CreatePolyQuadraticBezierSegment(จุดหมายเลข[ ], บอล)
สร้างชุดใหม่ของ Curves Bézier quadratic จากจุดก่อนหน้านี้ในตัวเลขทางผ่านชุดของแนวตั้ง, ใช้จุดควบคุมที่ระบุ
public XpsPolyQuadraticBezierSegment CreatePolyQuadraticBezierSegment(PointF[] points, bool isStroked = true)Parameters
points PointF
[ ]
จุดควบคุมสําหรับส่วน Bézier สี่เหลี่ยมหลาย
isStroked bool
รายละเอียดว่าการโจมตีสําหรับส่วนนี้ของเส้นทางจะถูกดึง
Returns
ใหม่สี่เหลี่ยม 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
ใหม่ 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
ใหม่ Radial Gradient Brush
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, ใบมีด)
สร้างรูปลักษณ์ใหม่
public XpsVisualBrush CreateVisualBrush(XpsContentElement element, RectangleF viewbox, RectangleF viewport)Parameters
element XpsContentElement
ชิ้นส่วน XPS (Canvas, Path หรือ Glyphs) สําหรับคุณสมบัติภาพจากแปรงภาพ
viewbox RectangleF
ตําแหน่งและขนาดของเนื้อหาแหล่งของแปรง
viewport RectangleF
พื้นที่ในพื้นที่ที่ประกอบด้วยความ koordinate ของ prim brushใบมีดที่ถูกนํามาใช้ (อาจเป็นครั้งคราว) เพื่อเติมพื้นที่ที่สกรูถูกนํามาใช้
Returns
ใหม่ Visual Brush
Dispose()
มีข้อบังคับ
public void Dispose()GetDocumentPrintTicket(int)
กลับตั๋วพิมพ์ของเอกสารที่ indexed โดย documentIndex'.
public DocumentPrintTicket GetDocumentPrintTicket(int documentIndex)Parameters
documentIndex int
ข้อมูลจําเพาะของเอกสารที่การพิมพ์ตั๋วจะกลับมา
Returns
ตั๋วพิมพ์เอกสาร
GetPagePrintTicket(int, int)
กลับตั๋วพิมพ์ของหน้าที่ indexed โดย pageIndex’ ในเอกสารที่ indexed โดย documentIndex'.
public PagePrintTicket GetPagePrintTicket(int documentIndex, int pageIndex)Parameters
documentIndex int
รายละเอียดของเอกสาร
pageIndex int
หมายเลขของหน้าที่การพิมพ์ตั๋วจะกลับมา
Returns
ตั๋วพิมพ์ของหน้า
แปลง (int, t)
ใส่องค์ประกอบ (Canvas, Path, หรือ Glyphs) ในหน้าใช้งานในตําแหน่ง index.
public T Insert<t>(int index, T element) where T : XpsContentElementParameters
index int
ตําแหน่งที่ element" ควรใส่
element T
องค์ประกอบที่จะใส่
Returns
T
องค์ประกอบที่ใส่
ประเภทพารามิเตอร์
T
ประเภทขององค์ประกอบ
InsertCanvas(int)
ใส่ช่องใหม่ไปยังหน้าใช้งานในตําแหน่ง index"
public XpsCanvas InsertCanvas(int index)Parameters
index int
ตําแหน่งที่ควรใส่ถังใหม่
Returns
แถบใส่
InsertDocument(อินเทอร์, บอล)
ใส่เอกสารที่ว่างเปล่าที่มีขนาดหน้าแบบกําหนดเอง index’ ตําแหน่ง
public void InsertDocument(int index, bool activate = true)Parameters
index int
ตําแหน่งที่ควรใส่เอกสาร
activate bool
ป้ายแสดงให้เห็นว่าจะเลือกเอกสารที่ใส่เป็นกิจกรรมหรือไม่
InsertDocument(int, float, บอล)
ใส่เอกสารที่ว่างเปล่าที่มีขนาดหน้าแรก width" และ height" ในตําแหน่ง index"
public void InsertDocument(int index, float width, float height, bool activate = true)Parameters
index int
ตําแหน่งที่ควรใส่เอกสาร
width float
ความกว้างของหน้าแรก
height float
ความสูงของหน้าแรก
activate bool
ป้ายแสดงให้เห็นว่าจะเลือกเอกสารที่ใส่เป็นกิจกรรมหรือไม่
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
ใส่ 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
ใส่ glyphs
InsertPage(อินเทอร์, บอล)
ใส่หน้าว่างเปล่าในเอกสารที่มีขนาดหน้าแบบกําหนดเอง index’ ตําแหน่ง
public XpsPage InsertPage(int index, bool activate = true)Parameters
index int
ตําแหน่งที่ควรใส่หน้า
activate bool
บัตรแสดงให้เห็นว่าเลือกหน้าที่ใส่เป็นกิจกรรมหรือไม่
Returns
หน้าที่ใส่
InsertPage(int, float, บอล)
ใส่หน้าว่างเปล่าในเอกสารที่มี width’ และ height’ ที่ index’ ตําแหน่ง
public XpsPage InsertPage(int index, float width, float height, bool activate = true)Parameters
index int
ตําแหน่งที่ควรใส่หน้า
width float
ความกว้างของหน้าใหม่
height float
ความสูงของหน้าใหม่
activate bool
บัตรแสดงให้เห็นว่าเลือกหน้าที่ใส่เป็นกิจกรรมหรือไม่
Returns
หน้าที่ใส่
InsertPage(int, XpsPage, บอล)
ใส่หน้าในเอกสารในตําแหน่ง index"
public XpsPage InsertPage(int index, XpsPage page, bool activate = true)Parameters
index int
ตําแหน่งที่ควรเพิ่มหน้า
page XpsPage
หน้าที่ใส่ไว้
activate bool
บัตรแสดงให้เห็นว่าเลือกหน้าที่ใส่เป็นกิจกรรมหรือไม่
Returns
หน้าที่ใส่
InsertPath(int, XpsPathGeometry)
ใส่เส้นทางใหม่ไปยังหน้าใช้งานในตําแหน่ง index"
public XpsPath InsertPath(int index, XpsPathGeometry data)Parameters
index int
ตําแหน่งที่ควรใส่เส้นทางใหม่
data XpsPathGeometry
ภูมิศาสตร์ของเส้นทาง
Returns
ขั้นตอนที่กําหนด
Merge(รั้ว[ ], ภาษาไทย)
การรวมไฟล์ XPS หลายไฟล์ไปยังเอกสาร XPS หนึ่ง
public void Merge(string[] filesForMerge, string outXpsFilePath)Parameters
filesForMerge string
[ ]
ไฟล์ XPS เพื่อผสมกับเอกสารนี้
outXpsFilePath string
ทางออกของไฟล์ Xps
Merge(รั้ว[ ], กระแส)
การรวมไฟล์ XPS หลายไฟล์ไปยังเอกสาร XPS หนึ่ง
public void Merge(string[] filesForMerge, Stream outStream)Parameters
filesForMerge string
[ ]
ไฟล์ XPS เพื่อผสมกับเอกสารนี้
outStream Stream
กระแสการส่งออกที่สามารถบันทึกเอกสาร XPS รวมได้
MergeToPdf(รั้ว[ ], string, PdfSaveOptions)
การรวมเอกสาร XPS ไปยัง PDF โดยใช้ตัวอย่าง Aspose.Page.Device
public void MergeToPdf(string[] filesForMerge, string outPdfFilePath, PdfSaveOptions options)Parameters
filesForMerge string
[ ]
ไฟล์ XPS เพื่อเชื่อมต่อกับเอกสารนี้ไปยังอุปกรณ์ออก
outPdfFilePath string
ทางออกของไฟล์ PDF
options PdfSaveOptions
ตัวเลือกการประหยัดเอกสาร
MergeToPdf(รั้ว[ ], Stream, PdfSaveOptions)
การรวมเอกสาร XPS ไปยัง PDF โดยใช้ตัวอย่าง Aspose.Page.Device
public void MergeToPdf(string[] filesForMerge, Stream pdfStream, PdfSaveOptions options)Parameters
filesForMerge string
[ ]
ไฟล์ XPS เพื่อเชื่อมต่อกับเอกสารนี้ไปยังอุปกรณ์ออก
pdfStream Stream
การส่งออกของ PDF Stream
options PdfSaveOptions
ตัวเลือกการประหยัดเอกสาร
ลบ (T)
ลบองค์ประกอบจากหน้าใช้งาน
public T Remove<t>(T element) where T : XpsContentElementParameters
element T
องค์ประกอบที่ต้องลบ
Returns
T
องค์ประกอบที่ถอดออก
ประเภทพารามิเตอร์
T
ประเภทขององค์ประกอบ
RemoveAt(int)
ลบองค์ประกอบในตําแหน่ง index" จากหน้าใช้งาน
public XpsContentElement RemoveAt(int index)Parameters
index int
ตําแหน่งที่องค์ประกอบที่ควรลบ
Returns
องค์ประกอบที่ถอดออก
RemoveDocumentAt(int)
ลบเอกสารในตําแหน่ง index"
public void RemoveDocumentAt(int index)Parameters
index int
ตําแหน่งที่เอกสารควรลบ
RemovePage(XpsPage)
ลบหน้าจากเอกสาร
public XpsPage RemovePage(XpsPage page)Parameters
page XpsPage
หน้าที่ต้องลบ
Returns
หน้าที่ลบ
RemovePageAt(int)
ลบหน้าจากเอกสารในตําแหน่ง index"
public XpsPage RemovePageAt(int index)Parameters
index int
ตําแหน่งที่หน้าควรลบ
Returns
หน้าที่ลบ
Save(รั้ว)
บันทึกเอกสาร XPS ไปยังไฟล์ XPS ที่อยู่ใน path'.
public void Save(string path)Parameters
path string
ตําแหน่งของเอกสาร
Save(Stream)
บันทึกเอกสาร XPS ไปยัง Stream
public void Save(Stream stream)Parameters
stream Stream
กระแสเอกสาร XPS จะถูกบันทึกไว้
SaveAsImage(ImageSaveOptions)
บันทึกเอกสารในรูปแบบภาพ bitmap
public byte[][][] SaveAsImage(ImageSaveOptions options)Parameters
options ImageSaveOptions
ตัวเลือกในการบันทึกเอกสารในรูปแบบภาพ bitmap
Returns
byte [ ] [ ]
รูปภาพที่ผลลัพธ์แร่ไบต์ ขนาดแรกคือสําหรับเอกสารภายในและครั้งที่สองคือสําหรับหน้าในเอกสารภายใน
SaveAsPdf(ลวด, PdfSaveOptions)
เก็บเอกสารในรูปแบบ PDF
public void SaveAsPdf(string outPdfFilePath, PdfSaveOptions options)Parameters
outPdfFilePath string
ทางออกของไฟล์ PDF
options PdfSaveOptions
ตัวเลือกในการบันทึกเอกสารในรูปแบบ PDF
SaveAsPdf(แหล่งจ่ายไฟ PdfSaveOptions)
เก็บเอกสารในรูปแบบ PDF
public void SaveAsPdf(Stream stream, PdfSaveOptions options)Parameters
stream Stream
กระแสในการเขียนไฟล์ PDF ที่ออก
options PdfSaveOptions
ตัวเลือกในการบันทึกเอกสารในรูปแบบ PDF
SaveAsPs(ลวด, PsSaveOptions)
บันทึกเอกสารในรูปแบบ PS
public void SaveAsPs(string outPsFilePath, PsSaveOptions options)Parameters
outPsFilePath string
เส้นทางออกของไฟล์ PS
options PsSaveOptions
ตัวเลือกในการบันทึกเอกสารในรูปแบบ PS
SaveAsPs(Stream, PsSaveOptions)
บันทึกเอกสารในรูปแบบ PS
public void SaveAsPs(Stream stream, PsSaveOptions options)Parameters
stream Stream
กระแสเพื่อเขียนไฟล์ PS ที่ออก
options PsSaveOptions
ตัวเลือกในการบันทึกเอกสารในรูปแบบ PS
SelectActiveDocument(int)
เลือกเอกสารที่ใช้งานสําหรับการแก้ไข
public void SelectActiveDocument(int documentNumber)Parameters
documentNumber int
หมายเลขเอกสาร
Exceptions
ผ่านเมื่อ documentNumber’ ไม่ จํากัด
SelectActivePage(int)
เลือกหน้าเอกสารที่ใช้งานสําหรับการแก้ไข
public XpsPage SelectActivePage(int pageNumber)Parameters
pageNumber int
หมายเลขหน้า
Returns
ตัวอย่าง Aspose.Page.XPS.XpsModel.XpsPage สําหรับหน้าใช้งาน
Exceptions
ผ่านเมื่อpageNumber’ ไม่ จํากัด
SetDocumentPrintTicket(int, DocumentPrintTicket)
เชื่อมต่อ printTicket’ ไปยังเอกสารที่ indexed โดย documentIndex'.
public void SetDocumentPrintTicket(int documentIndex, DocumentPrintTicket printTicket)Parameters
documentIndex int
หมายเลขเอกสารเพื่อเชื่อมโยงตั๋วพิมพ์กับ
printTicket DocumentPrintTicket
การพิมพ์ตั๋วไปยังลิงค์
SetPagePrintTicket(Int, int, PagePrintTicket)
เชื่อมต่อ printTicket’ ไปยัง pageIndex’ ในเอกสารที่ indexed โดย documentIndex'.
public void SetPagePrintTicket(int documentIndex, int pageIndex, PagePrintTicket printTicket)Parameters
documentIndex int
รายละเอียดของเอกสาร
pageIndex int
หมายเลขของหน้าเพื่อเชื่อมโยงตั๋วพิมพ์ไปยัง
printTicket PagePrintTicket
การพิมพ์ตั๋วไปยังลิงค์