Class XpsDocument

Class XpsDocument

Tên không gian: Aspose.Page.XPS Tổng hợp: Aspose.Page.dll (25.4.0)

Khóa học chèn chủ yếu của tài liệu XPS cung cấp thao tácCác phương pháp cho bất kỳ yếu tố XPS.

public sealed class XpsDocument : Document, IDisposable

Inheritance

object Document XpsDocument

Implements

IDisposable

Thành viên thừa kế

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

XpsDocument()

Tạo tài liệu XPS trống với kích thước trang mặc định.

public XpsDocument()

XpsDocument(String)

Mở một tài liệu XPS hiện có nằm ở path'.

public XpsDocument(string path)

Parameters

path string

Vị trí của tài liệu

XpsDocument(LoadOptions, LoadOptions)

Mở một tài liệu hiện có nằm ở path’ như tài liệu XPS.

public XpsDocument(string path, LoadOptions options)

Parameters

path string

Vị trí của tài liệu

options LoadOptions

Tài liệu tải tùy chọn.

XpsDocument(LoadOptions, LoadOptions)

Tải một tài liệu hiện có được lưu trữ trong stream’ như tài liệu XPS.

public XpsDocument(Stream stream, LoadOptions options)

Parameters

stream Stream

Tài liệu Stream

options LoadOptions

Tài liệu tải tùy chọn.

Properties

ActiveDocument

Nhận số tài liệu hoạt động.

public int ActiveDocument { get; }

Giá trị bất động sản

int

ActivePage

Nhận số trang hoạt động trong tài liệu hoạt động.

public int ActivePage { get; }

Giá trị bất động sản

int

DocumentCount

Quay lại số tài liệu bên trong gói XPS.

public int DocumentCount { get; }

Giá trị bất động sản

int

JobPrintTicket

Returns/sets document công việc in ticket

public JobPrintTicket JobPrintTicket { get; set; }

Giá trị bất động sản

JobPrintTicket

Page

Trở lại một ví dụ Aspose.Page.XPS.XpsModel.XpsPage cho trang hoạt động.

public XpsPage Page { get; }

Giá trị bất động sản

XpsPage

PageCount

Quay lại số trang trong tài liệu hoạt động.

public int PageCount { get; }

Giá trị bất động sản

int

TotalPageCount

Quay lại tổng số trang trong tất cả các tài liệu bên trong tài liệu XPS.

public int TotalPageCount { get; }

Giá trị bất động sản

int

Utils

Nhận được đối tượng cung cấp các tiện ích bên ngoài API xử lý XPS chính thức.

public DocumentUtils Utils { get; }

Giá trị bất động sản

DocumentUtils

Methods

Thêm t>(T)

Thêm một yếu tố nội dung (Canvas, Path, hoặc Glyphs).

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

Parameters

element T

Các yếu tố cần được thêm vào

Returns

T

Thêm yếu tố

Loại Parameters

T

Loại của yếu tố.

AddCanvas()

Thêm một canvas mới vào trang hoạt động.

public XpsCanvas AddCanvas()

Returns

XpsCanvas

Thêm canvas

AddDocument(Bool)

Thêm một tài liệu trống với kích thước trang mặc định.

public void AddDocument(bool activate = true)

Parameters

activate bool

Nhãn hiệu cho biết liệu bạn nên chọn tài liệu được thêm là hoạt động hay không.

AddDocument(float, float, bool)

Thêm một tài liệu trống với kích thước trang đầu tiên width’ và height'.

public void AddDocument(float width, float height, bool activate = true)

Parameters

width float

Chiều rộng của trang đầu tiên.

height float

Độ cao của trang đầu tiên

activate bool

Nhãn hiệu cho biết liệu bạn nên chọn tài liệu được thêm là hoạt động hay không.

AddGlyphs(dòng, float, fontStyle, float, float, string)

Thêm glyphs mới vào trang hoạt động.

public XpsGlyphs AddGlyphs(string fontFamily, float fontRenderingEmSize, FontStyle fontStyle, float originX, float originY, string unicodeString)

Parameters

fontFamily string

Hình ảnh gia đình

fontRenderingEmSize float

font kích thước.

fontStyle FontStyle

Phong cách Font.

originX float

Glyphs nguồn x coordinate.

originY float

Glyphs nguồn gốc Y phối hợp.

unicodeString string

Dây để in.

Returns

XpsGlyphs

Thêm glyphs

AddGlyphs(XpsFont, float, float, float, string)

Thêm glyphs mới vào trang hoạt động.

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

Parameters

font XpsFont

Font tài nguyên

fontRenderingEmSize float

font kích thước.

originX float

Glyphs nguồn x coordinate.

originY float

Glyphs nguồn gốc Y phối hợp.

unicodeString string

Dây để in.

Returns

XpsGlyphs

Thêm glyphs

AddOutlineEntry(Thẻ, int, xpsHyperlinkTarget)

Thêm một bản nhập outline vào tài liệu.

public void AddOutlineEntry(string description, int outlineLevel, XpsHyperlinkTarget target)

Parameters

description string

Mô tả entry.

outlineLevel int

mức outline.

target XpsHyperlinkTarget

Mục tiêu nhập

AddPage(Bool)

Thêm một trang trống vào tài liệu với kích thước trang mặc định.

public XpsPage AddPage(bool activate = true)

Parameters

activate bool

Bảng cho biết liệu bạn nên chọn thêm trang như hoạt động hay không.

Returns

XpsPage

Thêm trang

AddPage(float, float, bool)

Thêm một trang trống vào tài liệu với cụ thể width’ và height'.

public XpsPage AddPage(float width, float height, bool activate = true)

Parameters

width float

Tính rộng của một trang mới.

height float

Độ cao của một trang mới

activate bool

Bảng cho biết liệu bạn nên chọn thêm trang như hoạt động hay không.

Returns

XpsPage

Thêm trang

AddPage(XpsPage, Bool)

Thêm một trang vào tài liệu.

public XpsPage AddPage(XpsPage page, bool activate = true)

Parameters

page XpsPage

Trang để thêm

activate bool

Bảng cho biết liệu bạn nên chọn thêm trang như hoạt động hay không.

Returns

XpsPage

Thêm trang

AddPath(XpsPathGeometry)

Thêm một con đường mới vào trang hoạt động.

public XpsPath AddPath(XpsPathGeometry data)

Parameters

data XpsPathGeometry

Địa lý của con đường.

Returns

XpsPath

Thêm con đường

CreateArcSegment(PointF, SizeF, float, bool, XpsSweepDirection, bool)

Tạo một phân khúc arc elliptical mới.

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

Parameters

point PointF

Điểm kết thúc của hố elliptical.

size SizeF

X và y đường kính của hố eliptic như một cặp x,y.

rotationAngle float

Nó chỉ ra làm thế nào các ellipse được xoay so với hệ thống phối hợp hiện tại.

isLargeArc bool

Nó xác định xem hố có được kéo bằng một vết sẹo 180 hoặc lớn hơn.

sweepDirection XpsSweepDirection

hướng mà hố được kéo.

isStroked bool

Nó xác định xem vết nứt cho phần này của con đường có bị kéo hay không.

Returns

XpsArcSegment

Bộ phận arc elliptical mới.

CreateCanvas()

tạo ra một canvas mới.

public XpsCanvas CreateCanvas()

Returns

XpsCanvas

canvas mới

CreateColor(Color)

tạo ra một màu mới.

public XpsColor CreateColor(Color color)

Parameters

color Color

Một ví dụ màu bản địa cho màu RGB.

Returns

XpsColor

Màu mới

CreateColor(int, int, int, int, int)

Tạo một màu mới trong không gian màu sRGB.

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

Parameters

a int

Các thành phần màu alpha

r int

Các thành phần màu đỏ.

g int

Thành phần màu xanh lá cây

b int

Màu xanh thành phần.

Returns

XpsColor

Màu mới

CreateColor(int, int, int, int)

Tạo một màu mới trong không gian màu sRGB.

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

Parameters

r int

Các thành phần màu đỏ.

g int

Thành phần màu xanh lá cây

b int

Màu xanh thành phần.

Returns

XpsColor

Màu mới

CreateColor(Hải quân, Hải quân, Hải quân, Hải quân)

Tạo một màu mới trong không gian màu scRGB.

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

Parameters

a float

Các thành phần màu alpha

r float

Các thành phần màu đỏ.

g float

Thành phần màu xanh lá cây

b float

Màu xanh thành phần.

Returns

XpsColor

Màu mới

CreateColor(float, float và float)

Tạo một màu mới trong không gian màu scRGB.

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

Parameters

r float

Các thành phần màu đỏ.

g float

Thành phần màu xanh lá cây

b float

Màu xanh thành phần.

Returns

XpsColor

Màu mới

CreateColor(Nhãn hiệu: Params Float[])

Tạo một màu mới trong không gian màu dựa trên ICC.

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

Parameters

path string

Đường đến hồ sơ ICC.

components float [ ]

Các thành phần màu

Returns

XpsColor

Màu mới

CreateColor(XpsIccProfile, params float[])

Tạo một màu mới trong không gian màu dựa trên ICC.

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

Parameters

iccProfile XpsIccProfile

Tài nguyên hồ sơ của ICC

components float [ ]

Các thành phần màu

Returns

XpsColor

Màu mới

CreateFont(Phong cách, FontStyle)

Tạo một tài nguyên font TrueType mới.

public XpsFont CreateFont(string fontFamily, FontStyle fontStyle)

Parameters

fontFamily string

Gia đình font.

fontStyle FontStyle

Phong cách font.

Returns

XpsFont

Nguồn tin mới TrueType

CreateFont(Stream)

Tạo một nguồn phông chữ TrueType mới ra khỏi dòng.

public XpsFont CreateFont(Stream stream)

Parameters

stream Stream

Các dòng chảy có chứa hồ sơ của ICC để xem như một nguồn lực.

Returns

XpsFont

Nguồn tin mới TrueType

CreateGlyphs(dòng, float, fontStyle, float, float, string)

tạo ra glyphs mới.

public XpsGlyphs CreateGlyphs(string fontFamily, float fontRenderingEmSize, FontStyle fontStyle, float originX, float originY, string unicodeString)

Parameters

fontFamily string

Hình ảnh gia đình

fontRenderingEmSize float

font kích thước.

fontStyle FontStyle

Phong cách Font.

originX float

Glyphs nguồn x coordinate.

originY float

Glyphs nguồn gốc Y phối hợp.

unicodeString string

Dây để in.

Returns

XpsGlyphs

Glyph mới

CreateGlyphs(XpsFont, float, float, float, string)

tạo ra glyphs mới.

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

Parameters

font XpsFont

Font tài nguyên

fontRenderingEmSize float

font kích thước.

originX float

Glyphs nguồn x coordinate.

originY float

Glyphs nguồn gốc Y phối hợp.

unicodeString string

Dây để in.

Returns

XpsGlyphs

Glyph mới

CreateGradientStop(XpsColor, Float)

tạo ra một dừng gradient mới.

public XpsGradientStop CreateGradientStop(XpsColor color, float offset)

Parameters

color XpsColor

Gradient stop màu sắc

offset float

Gradient trả giá.

Returns

XpsGradientStop

Trở lại Gradient Stop

CreateGradientStop(Màu sắc, float)

tạo ra một dừng gradient mới.

public XpsGradientStop CreateGradientStop(Color color, float offset)

Parameters

color Color

Gradient stop màu sắc

offset float

Gradient trả giá.

Returns

XpsGradientStop

Trở lại Gradient Stop

CreateIccProfile(String)

Tạo một tài nguyên hồ sơ ICC mới từ tệp hồ sơ ICC nằm ở iccProfilePath'.

public XpsIccProfile CreateIccProfile(string iccProfilePath)

Parameters

iccProfilePath string

Con đường đến hồ sơ của ICC để lấy như một nguồn lực.

Returns

XpsIccProfile

Tài nguyên hồ sơ mới của ICC

CreateIccProfile(Stream)

Tạo một tài nguyên hồ sơ mới của ICC từ stream'.

public XpsIccProfile CreateIccProfile(Stream stream)

Parameters

stream Stream

Các dòng chảy có chứa hồ sơ của ICC để xem như một nguồn lực.

Returns

XpsIccProfile

Tài nguyên hồ sơ mới của ICC

CreateImage(String)

Tạo một nguồn hình ảnh mới từ tệp hình ảnh nằm ở imagePath'.

public XpsImage CreateImage(string imagePath)

Parameters

imagePath string

Con đường đến hình ảnh để lấy như một nguồn lực.

Returns

XpsImage

Nguồn hình ảnh mới

CreateImage(Stream)

Tạo một nguồn hình ảnh mới từ stream'.

public XpsImage CreateImage(Stream stream)

Parameters

stream Stream

Quá trình chứa hình ảnh để lấy như một nguồn lực.

Returns

XpsImage

Nguồn hình ảnh mới

CreateImageBrush(XpsImage, RectangleF, RectangleF)

Tạo một hình ảnh brush mới

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

Parameters

image XpsImage

Nguồn hình ảnh

viewbox RectangleF

Vị trí và kích thước của nội dung nguồn của máy nén.

viewport RectangleF

Khu vực trong không gian phối hợp chứa của phun đầu tiênbột được áp dụng (có thể lặp lại) để điền vào khu vực mà bột được áp dụng

Returns

XpsImageBrush

Hình ảnh mới Brush

CreateImageBrush(Tính năng: RectangleF, RectangleF)

Tạo một hình ảnh brush mới

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

Parameters

imagePath string

Con đường đến hình ảnh để thực hiện như một bút chì.

viewbox RectangleF

Vị trí và kích thước của nội dung nguồn của máy nén.

viewport RectangleF

Khu vực trong không gian phối hợp chứa của phun đầu tiênbột được áp dụng (có thể lặp lại) để điền vào khu vực mà bột được áp dụng

Returns

XpsImageBrush

Hình ảnh mới Brush

CreateLinearGradientBrush(Danh sách, Điểm F, Điểm F)

Tạo một nén gradient linear mới.

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

Parameters

gradientStops List < XpsGradientStop >

Danh sách các gradient dừng lại

startPoint PointF

Điểm khởi đầu của gradient linear.

endPoint PointF

Điểm cuối của gradient linear.

Returns

XpsLinearGradientBrush

Bàn chải gradient linear mới

CreateLinearGradientBrush(Điểm, PointF)

Tạo một nén gradient linear mới.

public XpsLinearGradientBrush CreateLinearGradientBrush(PointF startPoint, PointF endPoint)

Parameters

startPoint PointF

Điểm khởi đầu của gradient linear.

endPoint PointF

Điểm cuối của gradient linear.

Returns

XpsLinearGradientBrush

Bàn chải gradient linear mới

CreateMatrix(Hải quân, Hải quân, Hải quân, Hải quân, Hải quân)

Tạo một matrix chuyển đổi tinh tế mới.

public XpsMatrix CreateMatrix(float m11, float m12, float m21, float m22, float m31, float m32)

Parameters

m11 float

Các yếu tố 11.

m12 float

Mục 12

m21 float

Mục 21

m22 float

Các yếu tố 22.

m31 float

Mục 31

m32 float

Mục 32

Returns

XpsMatrix

Matrix chuyển đổi mới.

CreatePath(XpsPathGeometry)

tạo ra một con đường mới.

public XpsPath CreatePath(XpsPathGeometry data)

Parameters

data XpsPathGeometry

Địa lý của con đường.

Returns

XpsPath

Con đường mới

CreatePathFigure(Lời bài hát: PointF, Bool)

tạo ra một con đường mới.

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

Parameters

startPoint PointF

Điểm khởi đầu cho phần đầu tiên của con số con đường.

isClosed bool

Đánh giá xem con đường có bị đóng hay không.Nếu thiết lập đúng, cơn đau sẽ bị kéo"đóng", tức là, điểm cuối cùng trong phân đoạn cuối cùng của con số con đường được kết nối vớiđiểm được chỉ định trong thuộc tính StartPoint, nếu không, vết nứt được rút ra “mở”, vàđiểm cuối không được kết nối với điểm khởi đầu. chỉ áp dụng nếu con số đường làđược sử dụng trong một yếu tố Path mà chỉ ra một đột quỵ.

Returns

XpsPathFigure

con đường mới.

CreatePathFigure(PointF, Danh sách, bool)

tạo ra một con đường mới.

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

Parameters

startPoint PointF

Điểm khởi đầu cho phần đầu tiên của con số con đường.

segments List < XpsPathSegment >

Danh sách các bộ phận đường.

isClosed bool

Đánh giá xem con đường có bị đóng hay không.Nếu thiết lập đúng, cơn đau sẽ bị kéo"đóng", tức là, điểm cuối cùng trong phân đoạn cuối cùng của con số con đường được kết nối vớiđiểm được chỉ định trong thuộc tính StartPoint, nếu không, vết nứt được rút ra “mở”, vàđiểm cuối không được kết nối với điểm khởi đầu. chỉ áp dụng nếu con số đường làđược sử dụng trong một yếu tố Path mà chỉ ra một đột quỵ.

Returns

XpsPathFigure

con đường mới.

CreatePathGeometry(String)

Tạo một đường geometry mới được chỉ định với hình thức ngắn gọn.

public XpsPathGeometry CreatePathGeometry(string abbreviatedGeometry)

Parameters

abbreviatedGeometry string

Một hình thức ngắn gọn của đường địa lý.

Returns

XpsPathGeometry

Địa lý đường mới.

CreatePathGeometry()

Nó tạo ra một con đường mới về địa lý.

public XpsPathGeometry CreatePathGeometry()

Returns

XpsPathGeometry

Địa lý đường mới.

CreatePathGeometry(Danh sách )

Tạo một địa lý đường mới với danh sách các con số đường cụ thể.

public XpsPathGeometry CreatePathGeometry(List<xpspathfigure> pathFigures)

Parameters

pathFigures List < XpsPathFigure >

Danh sách các con đường

Returns

XpsPathGeometry

Địa lý đường mới.

CreatePolyBezierSegment(Điểm[ ], bool)

Tạo ra một bộ mới của các curves cubic Bézier.

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

Parameters

points PointF [ ]

Các điểm kiểm soát cho nhiều phân đoạn Bézier.

isStroked bool

Nó xác định xem vết nứt cho phần này của con đường có bị kéo hay không.

Returns

XpsPolyBezierSegment

Cúp mới Bézier curves segment.

CreatePolyLineSegment(Điểm[ ], bool)

Nó tạo ra một bản vẽ đa dạng mới có chứa một số lượng tự nguyện của các tầng hầm cá nhân.

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

Parameters

points PointF [ ]

Một bộ tọa độ cho các phân khúc đa định nghĩa phân khúc poly line.

isStroked bool

Nó xác định xem vết nứt cho phần này của con đường có bị kéo hay không.

Returns

XpsPolyLineSegment

Một phân khúc vẽ đa dạng mới.

CreatePolyQuadraticBezierSegment(Điểm[ ], bool)

Tạo một bộ mới của các curves Bézier quadratic từ điểm trước trong con số đường qua một bộcủa các dọc, sử dụng các điểm kiểm soát cụ thể.

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

Parameters

points PointF [ ]

Các điểm kiểm soát cho nhiều phân đoạn Bézier quadratic.

isStroked bool

Nó xác định xem vết nứt cho phần này của con đường có bị kéo hay không.

Returns

XpsPolyQuadraticBezierSegment

Quadratic mới Bézier curves segment.

CreateRadialGradientBrush(Danh sách, PointF, PointF, float, float)

Tạo ra một nén radial gradient mới.

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

Parameters

gradientStops List < XpsGradientStop >

Danh sách các gradient dừng lại

center PointF

Điểm trung tâm của gradient gốc (tức là trung tâm của ellipse).

gradientOrigin PointF

Điểm nguồn gốc của gradient radial.

radiusX float

Ánh sáng trong x chiều của ellipse mà xác định mức độ radial.

radiusY float

Radius trong y chiều của ellipse mà xác định mức độ radial.

Returns

XpsRadialGradientBrush

Phân bón Radial Gradient

CreateRadialGradientBrush(PointF, PointF, Float và Float)

Tạo ra một nén radial gradient mới.

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

Parameters

center PointF

Điểm trung tâm của gradient gốc (tức là trung tâm của ellipse).

gradientOrigin PointF

Điểm nguồn gốc của gradient radial.

radiusX float

Ánh sáng trong x chiều của ellipse mà xác định mức độ radial.

radiusY float

Radius trong y chiều của ellipse mà xác định mức độ radial.

Returns

XpsRadialGradientBrush

Phân bón Radial Gradient

CreateSolidColorBrush(XpsColor)

Tạo một màu sắc tinh khiết mới.

public XpsSolidColorBrush CreateSolidColorBrush(XpsColor color)

Parameters

color XpsColor

Màu sắc cho các yếu tố đầy đủ

Returns

XpsSolidColorBrush

Màu sắc tinh khiết mới.

CreateSolidColorBrush(Color)

Tạo một màu sắc tinh khiết mới.

public XpsSolidColorBrush CreateSolidColorBrush(Color color)

Parameters

color Color

Màu sắc cho các yếu tố đầy đủ

Returns

XpsSolidColorBrush

Màu sắc tinh khiết mới.

CreateVisualBrush(XpsContentElement, RectangleF, RectangleF)

Tạo một gạch thị giác mới.

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

Parameters

element XpsContentElement

Các yếu tố XPS (Canvas, Path hoặc Glyphs) cho Visual Property od Visual Brush.

viewbox RectangleF

Vị trí và kích thước của nội dung nguồn của máy nén.

viewport RectangleF

Khu vực trong không gian phối hợp chứa của phun đầu tiênbột được áp dụng (có thể lặp lại) để điền vào khu vực mà bột được áp dụng

Returns

XpsVisualBrush

Nhãn hiệu Visual Brush

Dispose()

Tùy thuộc vào trường hợp.

public void Dispose()

GetDocumentPrintTicket(int)

Quay lại thẻ in của tài liệu được chỉ định bằng documentIndex'.

public DocumentPrintTicket GetDocumentPrintTicket(int documentIndex)

Parameters

documentIndex int

Chỉ số của tài liệu mà vé in phải trả lại.

Returns

DocumentPrintTicket

Vé in của tài liệu

GetPagePrintTicket(int, int)

Quay lại thẻ in của trang được chỉ định bằng pageIndex’ trong tài liệu được chỉ định bằng documentIndex'.

public PagePrintTicket GetPagePrintTicket(int documentIndex, int pageIndex)

Parameters

documentIndex int

Index của tài liệu.

pageIndex int

Chỉ số của trang mà vé in sẽ được trả lại.

Returns

PagePrintTicket

Vé in của trang.

Nhập t>(T, T)

Nhập một yếu tố (Canvas, Path, hoặc Glyphs) vào trang hoạt động ở vị trí index'.

public T Insert<t>(int index, T element) where T : XpsContentElement

Parameters

index int

Vị trí mà element" nên được nhập.

element T

Các yếu tố cần được nhập

Returns

T

Nhập yếu tố.

Loại Parameters

T

Loại của yếu tố.

InsertCanvas(int)

Nhập một kênh mới vào trang hoạt động ở vị trí index'.

public XpsCanvas InsertCanvas(int index)

Parameters

index int

Vị trí trong đó một tấm canvas mới nên được nhúng.

Returns

XpsCanvas

Đặt canvas

InsertDocument(Lời bài hát: Bool)

Nhập một tài liệu trống với kích thước trang mặc định index’ vị trí.

public void InsertDocument(int index, bool activate = true)

Parameters

index int

Vị trí mà một tài liệu phải được nhập vào.

activate bool

Bảng cho biết liệu bạn có nên chọn tài liệu được nhập như là hoạt động hay không.

InsertDocument(lục, lục, lục, lục)

Nhập một tài liệu trống với kích thước trang đầu tiên width’ và height’ ở vị trí index'.

public void InsertDocument(int index, float width, float height, bool activate = true)

Parameters

index int

Vị trí mà một tài liệu phải được nhập vào.

width float

Chiều rộng của trang đầu tiên.

height float

Độ cao của trang đầu tiên

activate bool

Bảng cho biết liệu bạn có nên chọn tài liệu được nhập như là hoạt động hay không.

InsertGlyphs(int, string, float, FontStyle, float, float, string)

Nhập glyphs mới vào trang hoạt động ở vị trí index'.

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

Parameters

index int

Vị trí mà glyphs mới nên được dán vào.

fontFamily string

Hình ảnh gia đình

fontSize float

font kích thước.

fontStyle FontStyle

Phong cách Font.

originX float

Glyphs nguồn x coordinate.

originY float

Glyphs nguồn gốc Y phối hợp.

unicodeString string

Dây để in.

Returns

XpsGlyphs

Nhập glyphs

InsertGlyphs(int, XpsFont, float, float, float, string)

Nhập glyphs mới vào trang hoạt động ở vị trí index'.

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

Parameters

index int

Vị trí mà glyphs mới nên được dán vào.

font XpsFont

Font tài nguyên

fontSize float

font kích thước.

originX float

Glyphs nguồn x coordinate.

originY float

Glyphs nguồn gốc Y phối hợp.

unicodeString string

Dây để in.

Returns

XpsGlyphs

Nhập glyphs

InsertPage(Lời bài hát: Bool)

Nhập một trang trống vào tài liệu với kích thước trang mặc định index’ vị trí.

public XpsPage InsertPage(int index, bool activate = true)

Parameters

index int

Vị trí mà một trang nên được nhập vào.

activate bool

Bảng cho biết liệu bạn có nên chọn trang được nhập như hoạt động hay không.

Returns

XpsPage

Cài đặt Page

InsertPage(lục, lục, lục, lục)

Nhập một trang trống vào tài liệu với cụ thể width’ và height’ ở vị trí index'.

public XpsPage InsertPage(int index, float width, float height, bool activate = true)

Parameters

index int

Vị trí mà một trang nên được nhập vào.

width float

Tính rộng của một trang mới.

height float

Độ cao của một trang mới

activate bool

Bảng cho biết liệu bạn có nên chọn trang được nhập như hoạt động hay không.

Returns

XpsPage

Cài đặt Page

InsertPage(int, XpsPage, bool)

Nhập một trang vào tài liệu ở vị trí index'.

public XpsPage InsertPage(int index, XpsPage page, bool activate = true)

Parameters

index int

Vị trí mà một trang nên được thêm vào.

page XpsPage

Trang để nhập.

activate bool

Bảng cho biết liệu bạn có nên chọn trang được nhập như hoạt động hay không.

Returns

XpsPage

Cài đặt Page

InsertPath(Giới thiệu XpsPathGeometry)

Nhập một con đường mới vào trang hoạt động ở vị trí index'.

public XpsPath InsertPath(int index, XpsPathGeometry data)

Parameters

index int

Vị trí mà một con đường mới nên được đưa vào.

data XpsPathGeometry

Địa lý của con đường.

Returns

XpsPath

Đường được nhúng.

Merge(String[ ], Nhãn String)

Kết hợp nhiều tệp XPS vào một tài liệu XPS.

public void Merge(string[] filesForMerge, string outXpsFilePath)

Parameters

filesForMerge string [ ]

XPS file để kết hợp với tài liệu này.

outXpsFilePath string

Một xps file output path.

Merge(String[ ], Stream)

Kết hợp nhiều tệp XPS vào một tài liệu XPS.

public void Merge(string[] filesForMerge, Stream outStream)

Parameters

filesForMerge string [ ]

XPS file để kết hợp với tài liệu này.

outStream Stream

dòng phát ra nơi để lưu các tài liệu XPS kết hợp.

MergeToPdf(String[ ], string, PdfSaveOptions)

Kết hợp tài liệu XPS sang PDF bằng cách sử dụng ví dụ Aspose.Page.Device.

public void MergeToPdf(string[] filesForMerge, string outPdfFilePath, PdfSaveOptions options)

Parameters

filesForMerge string [ ]

XPS file để kết hợp với tài liệu này vào một thiết bị phát.

outPdfFilePath string

Một output PDF file path.

options PdfSaveOptions

Tùy chọn tiết kiệm tài liệu

MergeToPdf(String[ ], Stream, PdfSaveOptions)

Kết hợp tài liệu XPS sang PDF bằng cách sử dụng ví dụ Aspose.Page.Device.

public void MergeToPdf(string[] filesForMerge, Stream pdfStream, PdfSaveOptions options)

Parameters

filesForMerge string [ ]

XPS file để kết hợp với tài liệu này vào một thiết bị phát.

pdfStream Stream

Một output PDF stream.

options PdfSaveOptions

Tùy chọn tiết kiệm tài liệu

xóa t>(T)

Xóa một yếu tố từ trang hoạt động.

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

Parameters

element T

yếu tố phải được loại bỏ.

Returns

T

Loại bỏ Element

Loại Parameters

T

Loại của yếu tố.

RemoveAt(int)

Xóa một yếu tố ở vị trí index" từ trang hoạt động.

public XpsContentElement RemoveAt(int index)

Parameters

index int

Vị trí trong đó các yếu tố nên được loại bỏ.

Returns

XpsContentElement

Loại bỏ Element

RemoveDocumentAt(int)

Xóa tài liệu ở vị trí index.

public void RemoveDocumentAt(int index)

Parameters

index int

Vị trí nơi một tài liệu nên được xóa.

RemovePage(XpsPage)

Xóa một trang từ tài liệu.

public XpsPage RemovePage(XpsPage page)

Parameters

page XpsPage

Trang để xóa.

Returns

XpsPage

xóa trang

RemovePageAt(int)

Xóa một trang từ tài liệu ở vị trí index'.

public XpsPage RemovePageAt(int index)

Parameters

index int

Vị trí nơi một trang nên được xóa.

Returns

XpsPage

xóa trang

Save(String)

Lưu tài liệu XPS vào tệp XPS nằm ở path'.

public void Save(string path)

Parameters

path string

Vị trí của tài liệu

Save(Stream)

Tiết kiệm tài liệu XPS để phát.

public void Save(Stream stream)

Parameters

stream Stream

Stream XPS tài liệu để được lưu vào.

SaveAsImage(ImageSaveOptions)

Lưu tài liệu trong định dạng hình ảnh bitmap.

public byte[][][] SaveAsImage(ImageSaveOptions options)

Parameters

options ImageSaveOptions

Các tùy chọn để lưu tài liệu trong định dạng hình ảnh bitmap.

Returns

byte [ ] [ ] [ ]

Các hình ảnh kết quả byte rays. kích thước đầu tiên là cho các tài liệu nội bộVà thứ hai là cho các trang trong các tài liệu nội bộ.

SaveAsPdf(Thẻ, PdfSaveOptions)

Lưu tài liệu trong định dạng PDF.

public void SaveAsPdf(string outPdfFilePath, PdfSaveOptions options)

Parameters

outPdfFilePath string

Một output PDF file path.

options PdfSaveOptions

Các tùy chọn để lưu tài liệu trong định dạng PDF.

SaveAsPdf(Stream, PdfSaveOptions)

Lưu tài liệu trong định dạng PDF.

public void SaveAsPdf(Stream stream, PdfSaveOptions options)

Parameters

stream Stream

dòng để viết tệp PDF xuất.

options PdfSaveOptions

Các tùy chọn để lưu tài liệu trong định dạng PDF.

SaveAsPs(Thẻ, PsSaveOptions)

Lưu tài liệu trong định dạng PS.

public void SaveAsPs(string outPsFilePath, PsSaveOptions options)

Parameters

outPsFilePath string

Hướng dẫn cài đặt PS file path.

options PsSaveOptions

Các tùy chọn để lưu tài liệu trong định dạng PS.

SaveAsPs(Stream, PsSaveOptions)

Lưu tài liệu trong định dạng PS.

public void SaveAsPs(Stream stream, PsSaveOptions options)

Parameters

stream Stream

dòng để viết tệp PS output đến.

options PsSaveOptions

Các tùy chọn để lưu tài liệu trong định dạng PS.

SelectActiveDocument(int)

Chọn một tài liệu hoạt động để chỉnh sửa.

public void SelectActiveDocument(int documentNumber)

Parameters

documentNumber int

Một số tài liệu.

Exceptions

ArgumentException

Thrown khidocumentNumber’ không giới hạn.

SelectActivePage(int)

Chọn một trang tài liệu hoạt động để chỉnh sửa.

public XpsPage SelectActivePage(int pageNumber)

Parameters

pageNumber int

Một số trang.

Returns

XpsPage

Ví dụ Aspose.Page.XPS.XpsModel.XpsPage cho trang hoạt động.

Exceptions

ArgumentException

Thrown khipageNumber’ không giới hạn.

SetDocumentPrintTicket(Tài liệu, DocumentPrintTicket)

Liên kết printTicket’ đến tài liệu được index bởi documentIndex'.

public void SetDocumentPrintTicket(int documentIndex, DocumentPrintTicket printTicket)

Parameters

documentIndex int

Chỉ số tài liệu để liên kết vé in đến.

printTicket DocumentPrintTicket

Vé in đến link.

SetPagePrintTicket(int, int, PagePrintTicket)

Liên kết printTicket’ đến trang được index bởi pageIndex’ trong tài liệu được index bởi documentIndex'.

public void SetPagePrintTicket(int documentIndex, int pageIndex, PagePrintTicket printTicket)

Parameters

documentIndex int

Index của tài liệu.

pageIndex int

Chỉ số của trang để liên kết thẻ in đến.

printTicket PagePrintTicket

Vé in đến link.

 Tiếng Việt