Class DocumentUtils
ชื่อพื้นที่: Aspose.Page.XPS การประกอบ: Aspose.Page.dll (25.5.0)
หลักสูตรนี้มีประโยชน์มากกว่า API การจัดการ XPS อย่างเป็นทางการ
public class DocumentUtilsInheritance
อนุญาโตตุลาการ
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Methods
CreateCircle(PointF, เฟอร์รี่)
สร้างเส้นทางภูมิศาสตร์ที่แสดงให้เห็นถึงวงจร
public XpsPathGeometry CreateCircle(PointF center, float radius)Parameters
center PointF
จุดกลางของวงกลม
radius float
รอยด์ของวงกลม
Returns
เส้นทาง XPS Geometry
CreateCircularSegment(PointF, Float, float)
สร้างเส้นทางภูมิศาสตร์ที่แสดงให้เห็นถึงส่วนวงกลมระหว่างสองมุม
public XpsPathGeometry CreateCircularSegment(PointF center, float radius, float startAngle, float endAngle)Parameters
center PointF
ศูนย์ของวงจร
radius float
รอยด์ของวงกลม
startAngle float
มุมเริ่มต้น
endAngle float
มุมปลาย
Returns
เส้นทาง XPS Geometry
CreateEllipse(PointF, เฟอร์รี่)
สร้างเส้นทางจิเมตริกที่แสดงให้เห็นถึงความล้มเหลว
public XpsPathGeometry CreateEllipse(PointF center, float radiusX, float radiusY)Parameters
center PointF
จุดกลางของ ellipse
radiusX float
รั้วแนวนอนของ ellipse
radiusY float
รั้วแนวตั้งของ ellipse
Returns
เส้นทาง XPS Geometry
CreateImage(รั้ว, RectangleF, ImageMode)
สร้างเส้นทางตรงที่เต็มไปด้วยภาพ
public XpsPath CreateImage(string fileName, RectangleF imageBox, ImageMode mode = ImageMode.FitToBox)Parameters
fileName string
ชื่อไฟล์ภาพ
imageBox RectangleF
กล่องภาพเพื่อเติมด้วยภาพ
mode ImageMode
รูปแบบที่เหมาะสม
Returns
เส้นทาง XPS
CreatePieSlice(PointF, Float, float)
สร้างเส้นทางภูมิศาสตร์แสดงให้เห็นถึงเส้นผ่าศูนย์กลางวงจรระหว่างสองรังสี
public XpsPathGeometry CreatePieSlice(PointF center, float radius, float startAngle, float endAngle)Parameters
center PointF
ศูนย์ของวงจร
radius float
รอยด์ของวงกลม
startAngle float
มุมของ ray เริ่มต้น
endAngle float
มุมของปลาย ray
Returns
เส้นทาง XPS Geometry
CreateRectangle(คู่มือ)
สร้างเส้นทางภูมิศาสตร์ที่แสดงให้เห็นถึงแนวตั้ง
public XpsPathGeometry CreateRectangle(RectangleF rectangle)Parameters
rectangle RectangleF
ตุ๊กตา
Returns
เส้นทาง XPS Geometry
ก่อตั้งครรภ์CirkumscribedNGon(int, PointF, float)
สร้างเส้นทางภูมิศาสตร์ที่แสดงให้เห็นถึง n-gon รอบปกติรอบรอบรอบ
public XpsPathGeometry CreateRegularCircumscribedNGon(int n, PointF center, float radius)Parameters
n int
จํานวนแนวตั้ง
center PointF
ศูนย์ของวงจร
radius float
รอยด์ของวงกลม
Returns
เส้นทาง XPS Geometry
ก่อสร้างRegularInscribedNGon(int, PointF, float)
สร้างเส้นทางภูมิศาสตร์ที่แสดงให้เห็นถึง n-gon ธรรมดาที่ลงทะเบียนในวงจร
public XpsPathGeometry CreateRegularInscribedNGon(int n, PointF center, float radius)Parameters
n int
จํานวนแนวตั้ง
center PointF
ศูนย์ของวงจร
radius float
รอยด์ของวงกลม
Returns
เส้นทาง XPS Geometry