Class XpsCanvas
Tên không gian: Aspose.Page.XPS.XpsModel Tổng hợp: Aspose.Page.dll (25.4.0)
Các tính năng của lớp incapsulating element Canvas.Các yếu tố này nhóm các yếu tố cùng nhau. ví dụ, Glyphs và Path các yếu tốcó thể được nhóm thành một kênh để được xác định là một đơn vị (như là một điểm đến hyperlink) hoặcáp dụng một giá trị tài sản kết hợp cho mỗi đứa trẻ và các yếu tố tổ tiên.
public sealed class XpsCanvas : XpsContentElement, IEnumerable<xpscontentelement>, IEnumerable
Inheritance
object ← XpsObject ← XpsElement ← XpsHyperlinkElement ← XpsContentElement ← XpsCanvas
Implements
Thành viên thừa kế
XpsContentElement.RenderTransform , XpsContentElement.Clip , XpsContentElement.Opacity , XpsContentElement.OpacityMask , XpsHyperlinkElement.HyperlinkTarget , XpsElement.GetEnumerator() , XpsElement.this[int] , XpsElement.Count , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
EdgeMode
Trả lại/đặt lại giá trị điều khiển làm thế nào các cạnh của các con đường trong các đường lối được thực hiện.
public XpsEdgeMode EdgeMode { get; set; }
Giá trị bất động sản
Methods
Thêm t>(T)
Thêm một yếu tố vào danh sách trẻ em của canvas này.
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 yếu tố để thêm.
AddCanvas()
Thêm một canvas mới vào danh sách trẻ em của canvas này.
public XpsCanvas AddCanvas()
Returns
Thêm canvas
AddGlyphs(dòng, float, fontStyle, float, float, string)
Thêm glyphs mới vào danh sách trẻ em của canvas này.
public XpsGlyphs AddGlyphs(string fontFamily, float fontSize, FontStyle fontStyle, float originX, float originY, string unicodeString)
Parameters
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 T phối hợp.
unicodeString
string
Dây để in.
Returns
Thêm glyphs
AddPath(XpsPathGeometry)
Thêm một con đường mới vào danh sách trẻ em của canvas này.
public XpsPath AddPath(XpsPathGeometry data)
Parameters
data
XpsPathGeometry
Địa lý của con đường.
Returns
Thêm con đường
Clone()
Clone canvas này.
public XpsCanvas Clone()
Returns
Clone của canvas này.
Nhập t>(T, T)
Nhập một yếu tố vào danh sách trẻ em của canvas này ở vị trí index.
public T Insert<t>(int index, T element) where T : XpsContentElement
Parameters
index
int
Vị trí mà một yếu tố nên được dán vào.
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 yếu tố để thêm.
InsertCanvas(int)
Nhập một hộp mới vào danh sách trẻ em của hộp này ở 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
Đặt canvas
InsertGlyphs(int, string, float, FontStyle, float, float, string)
Nhập glyphs mới vào danh sách trẻ em của canvas này ở 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 T phối hợp.
unicodeString
string
Dây để in.
Returns
Thêm glyphs
InsertPath(Giới thiệu XpsPathGeometry)
Nhập một con đường mới vào danh sách trẻ em của canvas này ở 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
Đường được nhúng.