Class XpsDocument
Namespace: Aspose.Page.XPS
Assembly: Aspose.Page.dll (25.1.2)
XPSドキュメントの主要なエンティティをカプセル化し、任意のXPS要素に対する操作メソッドを提供するクラスです。
public sealed class XpsDocument : Document, IDisposable
継承
object ← Document ← XpsDocument
実装
継承メンバー
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
コンストラクター
XpsDocument()
デフォルトのページサイズで空のXPSドキュメントを作成します。
public XpsDocument()
XpsDocument(string)
path
にある既存のXPSドキュメントを開きます。
public XpsDocument(string path)
パラメーター
path
string
ドキュメントの場所。
XpsDocument(string, LoadOptions)
path
にある既存のドキュメントをXPSドキュメントとして開きます。
public XpsDocument(string path, LoadOptions options)
パラメーター
path
string
ドキュメントの場所。
options
LoadOptions
ドキュメントの読み込みオプション。
XpsDocument(Stream, LoadOptions)
stream
に格納された既存のドキュメントをXPSドキュメントとして読み込みます。
public XpsDocument(Stream stream, LoadOptions options)
パラメーター
stream
Stream
ドキュメントストリーム。
options
LoadOptions
ドキュメントの読み込みオプション。
プロパティ
ActiveDocument
アクティブなドキュメント番号を取得します。
public int ActiveDocument { get; }
プロパティ値
ActivePage
アクティブなドキュメント内のアクティブなページ番号を取得します。
public int ActivePage { get; }
プロパティ値
DocumentCount
XPSパッケージ内のドキュメント数を返します。
public int DocumentCount { get; }
プロパティ値
JobPrintTicket
ドキュメントのジョブ印刷チケットを返します/設定します。
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
正式なXPS操作APIを超えるユーティリティを提供するオブジェクトを取得します。
public DocumentUtils Utils { get; }
プロパティ値
メソッド
Add<t>(T)
コンテンツ要素(Canvas、Path、またはGlyphs)を追加します。
public T Add<t>(T element) where T : XpsContentElement
パラメーター
element
T
追加する要素。
戻り値
T
追加された要素。
型パラメーター
T
要素の型。
AddCanvas()
アクティブページに新しいキャンバスを追加します。
public XpsCanvas AddCanvas()
戻り値
追加されたキャンバス。
AddDocument(bool)
デフォルトのページサイズで空のドキュメントを追加します。
public void AddDocument(bool activate = true)
パラメーター
activate
bool
追加されたドキュメントをアクティブとして選択するかどうかを示すフラグ。
AddDocument(float, float, bool)
最初のページの寸法width
とheight
で空のドキュメントを追加します。
public void AddDocument(float width, float height, bool activate = true)
パラメーター
width
float
最初のページの幅。
height
float
最初のページの高さ。
activate
bool
追加されたドキュメントをアクティブとして選択するかどうかを示すフラグ。
AddGlyphs(string, float, FontStyle, float, float, string)
アクティブページに新しいグリフを追加します。
public XpsGlyphs AddGlyphs(string fontFamily, float fontRenderingEmSize, FontStyle fontStyle, float originX, float originY, string unicodeString)
パラメーター
fontFamily
string
フォントファミリー。
fontRenderingEmSize
float
フォントサイズ。
fontStyle
FontStyle
フォントスタイル。
originX
float
グリフの原点X座標。
originY
float
グリフの原点Y座標。
unicodeString
string
印刷される文字列。
戻り値
追加されたグリフ。
AddGlyphs(XpsFont, float, float, float, string)
アクティブページに新しいグリフを追加します。
public XpsGlyphs AddGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, string unicodeString)
パラメーター
font
XpsFont
フォントリソース。
fontRenderingEmSize
float
フォントサイズ。
originX
float
グリフの原点X座標。
originY
float
グリフの原点Y座標。
unicodeString
string
印刷される文字列。
戻り値
追加されたグリフ。
AddOutlineEntry(string, int, XpsHyperlinkTarget)
ドキュメントにアウトラインエントリを追加します。
public void AddOutlineEntry(string description, int outlineLevel, XpsHyperlinkTarget target)
パラメーター
description
string
エントリの説明。
outlineLevel
int
アウトラインレベル。
target
XpsHyperlinkTarget
エントリのターゲット。
AddPage(bool)
デフォルトのページサイズで空のページをドキュメントに追加します。
public XpsPage AddPage(bool activate = true)
パラメーター
activate
bool
追加されたページをアクティブとして選択するかどうかを示すフラグ。
戻り値
追加されたページ。
AddPage(float, float, bool)
指定されたwidth
とheight
の空のページをドキュメントに追加します。
public XpsPage AddPage(float width, float height, bool activate = true)
パラメーター
width
float
新しいページの幅。
height
float
新しいページの高さ。
activate
bool
追加されたページをアクティブとして選択するかどうかを示すフラグ。
戻り値
追加されたページ。
AddPage(XpsPage, bool)
ドキュメントにページを追加します。
public XpsPage AddPage(XpsPage page, bool activate = true)
パラメーター
page
XpsPage
追加するページ。
activate
bool
追加されたページをアクティブとして選択するかどうかを示すフラグ。
戻り値
追加されたページ。
AddPath(XpsPathGeometry)
アクティブページに新しいパスを追加します。
public XpsPath AddPath(XpsPathGeometry data)
パラメーター
data
XpsPathGeometry
パスの形状。
戻り値
追加されたパス。
CreateArcSegment(PointF, SizeF, float, bool, XpsSweepDirection, bool)
新しい楕円弧セグメントを作成します。
public XpsArcSegment CreateArcSegment(PointF point, SizeF size, float rotationAngle, bool isLargeArc, XpsSweepDirection sweepDirection, bool isStroked = true)
パラメーター
point
PointF
楕円弧のエンドポイント。
size
SizeF
楕円弧のxおよびy半径をx,yペアとして指定します。
rotationAngle
float
楕円が現在の座標系に対してどのように回転しているかを示します。
isLargeArc
bool
弧が180度以上のスイープで描画されるかどうかを決定します。
sweepDirection
XpsSweepDirection
弧が描画される方向。
isStroked
bool
このパスセグメントのストロークが描画されるかどうかを指定します。
戻り値
新しい楕円弧セグメント。
CreateCanvas()
新しいキャンバスを作成します。
public XpsCanvas CreateCanvas()
戻り値
新しいキャンバス。
CreateColor(Color)
新しい色を作成します。
public XpsColor CreateColor(Color color)
パラメーター
color
Color
RGB色のためのネイティブな色インスタンス。
戻り値
新しい色。
CreateColor(int, int, int, int)
sRGBカラースペースで新しい色を作成します。
public XpsColor CreateColor(int a, int r, int g, int b)
パラメーター
a
int
アルファ色コンポーネント。
r
int
赤色コンポーネント。
g
int
緑色コンポーネント。
b
int
青色コンポーネント。
戻り値
新しい色。
CreateColor(int, int, int)
sRGBカラースペースで新しい色を作成します。
public XpsColor CreateColor(int r, int g, int b)
パラメーター
r
int
赤色コンポーネント。
g
int
緑色コンポーネント。
b
int
青色コンポーネント。
戻り値
新しい色。
CreateColor(float, float, float, float)
scRGBカラースペースで新しい色を作成します。
public XpsColor CreateColor(float a, float r, float g, float b)
パラメーター
a
float
アルファ色コンポーネント。
r
float
赤色コンポーネント。
g
float
緑色コンポーネント。
b
float
青色コンポーネント。
戻り値
新しい色。
CreateColor(float, float, float)
scRGBカラースペースで新しい色を作成します。
public XpsColor CreateColor(float r, float g, float b)
パラメーター
r
float
赤色コンポーネント。
g
float
緑色コンポーネント。
b
float
青色コンポーネント。
戻り値
新しい色。
CreateColor(string, params float[])
ICCベースのカラースペースで新しい色を作成します。
public XpsColor CreateColor(string path, params float[] components)
パラメーター
path
string
ICCプロファイルへのパス。
components
float[]
色成分。
戻り値
新しい色。
CreateColor(XpsIccProfile, params float[])
ICCベースのカラースペースで新しい色を作成します。
public XpsColor CreateColor(XpsIccProfile iccProfile, params float[] components)
パラメーター
iccProfile
XpsIccProfile
ICCプロファイルリソース。
components
float[]
色成分。
戻り値
新しい色。
CreateFont(string, FontStyle)
新しいTrueTypeフォントリソースを作成します。
public XpsFont CreateFont(string fontFamily, FontStyle fontStyle)
パラメーター
fontFamily
string
フォントファミリー。
fontStyle
FontStyle
フォントスタイル。
戻り値
新しいTrueTypeフォントリソース。
CreateFont(Stream)
ストリームから新しいTrueTypeフォントリソースを作成します。
public XpsFont CreateFont(Stream stream)
パラメーター
stream
Stream
リソースとして使用するICCプロファイルを含むストリーム。
戻り値
新しいTrueTypeフォントリソース。
CreateGlyphs(string, float, FontStyle, float, float, string)
新しいグリフを作成します。
public XpsGlyphs CreateGlyphs(string fontFamily, float fontRenderingEmSize, FontStyle fontStyle, float originX, float originY, string unicodeString)
パラメーター
fontFamily
string
フォントファミリー。
fontRenderingEmSize
float
フォントサイズ。
fontStyle
FontStyle
フォントスタイル。
originX
float
グリフの原点X座標。
originY
float
グリフの原点Y座標。
unicodeString
string
印刷される文字列。
戻り値
新しいグリフ。
CreateGlyphs(XpsFont, float, float, float, string)
新しいグリフを作成します。
public XpsGlyphs CreateGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, string unicodeString)
パラメーター
font
XpsFont
フォントリソース。
fontRenderingEmSize
float
フォントサイズ。
originX
float
グリフの原点X座標。
originY
float
グリフの原点Y座標。
unicodeString
string
印刷される文字列。
戻り値
新しいグリフ。
CreateGradientStop(XpsColor, float)
新しいグラデーションストップを作成します。
public XpsGradientStop CreateGradientStop(XpsColor color, float offset)
パラメーター
color
XpsColor
グラデーションストップの色。
offset
float
グラデーションのオフセット。
戻り値
新しいグラデーションストップ。
CreateGradientStop(Color, float)
新しいグラデーションストップを作成します。
public XpsGradientStop CreateGradientStop(Color color, float offset)
パラメーター
color
Color
グラデーションストップの色。
offset
float
グラデーションのオフセット。
戻り値
新しいグラデーションストップ。
CreateIccProfile(string)
iccProfilePath
にあるICCプロファイルファイルから新しいICCプロファイルリソースを作成します。
public XpsIccProfile CreateIccProfile(string iccProfilePath)
パラメーター
iccProfilePath
string
リソースとして使用するICCプロファイルへのパス。
戻り値
新しいICCプロファイルリソース。
CreateIccProfile(Stream)
stream
から新しいICCプロファイルリソースを作成します。
public XpsIccProfile CreateIccProfile(Stream stream)
パラメーター
stream
Stream
リソースとして使用するICCプロファイルを含むストリーム。
戻り値
新しいICCプロファイルリソース。
CreateImage(string)
imagePath
にある画像ファイルから新しい画像リソースを作成します。
public XpsImage CreateImage(string imagePath)
パラメーター
imagePath
string
リソースとして使用する画像へのパス。
戻り値
新しい画像リソース。
CreateImage(Stream)
stream
から新しい画像リソースを作成します。
public XpsImage CreateImage(Stream stream)
パラメーター
stream
Stream
リソースとして使用する画像を含むストリーム。
戻り値
新しい画像リソース。
CreateImageBrush(XpsImage, RectangleF, RectangleF)
新しい画像ブラシを作成します。
public XpsImageBrush CreateImageBrush(XpsImage image, RectangleF viewbox, RectangleF viewport)
パラメーター
image
XpsImage
画像リソース。
viewbox
RectangleF
ブラシのソースコンテンツの位置と寸法。
viewport
RectangleF
ブラシが適用される領域を埋めるために(可能性として繰り返し)適用されるプライムブラシタイルの含まれる座標空間内の領域。
戻り値
新しい画像ブラシ。
CreateImageBrush(string, RectangleF, RectangleF)
新しい画像ブラシを作成します。
public XpsImageBrush CreateImageBrush(string imagePath, RectangleF viewbox, RectangleF viewport)
パラメーター
imagePath
string
ブラシタイルとして使用する画像へのパス。
viewbox
RectangleF
ブラシのソースコンテンツの位置と寸法。
viewport
RectangleF
ブラシが適用される領域を埋めるために(可能性として繰り返し)適用されるプライムブラシタイルの含まれる座標空間内の領域。
戻り値
新しい画像ブラシ。
CreateLinearGradientBrush(List<xpsgradientstop>, PointF, PointF)
新しい線形グラデーションブラシを作成します。
public XpsLinearGradientBrush CreateLinearGradientBrush(List<xpsgradientstop> gradientStops, PointF startPoint, PointF endPoint)
パラメーター
gradientStops
List<XpsGradientStop>
グラデーションストップのリスト。
startPoint
PointF
線形グラデーションの開始点。
endPoint
PointF
線形グラデーションの終了点。
戻り値
新しい線形グラデーションブラシ。
CreateLinearGradientBrush(PointF, PointF)
新しい線形グラデーションブラシを作成します。
public XpsLinearGradientBrush CreateLinearGradientBrush(PointF startPoint, PointF endPoint)
パラメーター
startPoint
PointF
線形グラデーションの開始点。
endPoint
PointF
線形グラデーションの終了点。
戻り値
新しい線形グラデーションブラシ。
CreateMatrix(float, float, float, float, float, float)
新しいアフィン変換行列を作成します。
public XpsMatrix CreateMatrix(float m11, float m12, float m21, float m22, float m31, float m32)
パラメーター
m11
float
要素11。
m12
float
要素12。
m21
float
要素21。
m22
float
要素22。
m31
float
要素31。
m32
float
要素32。
戻り値
新しいアフィン変換行列。
CreatePath(XpsPathGeometry)
新しいパスを作成します。
public XpsPath CreatePath(XpsPathGeometry data)
パラメーター
data
XpsPathGeometry
パスの形状。
戻り値
新しいパス。
CreatePathFigure(PointF, bool)
新しいパス図形を作成します。
public XpsPathFigure CreatePathFigure(PointF startPoint, bool isClosed = false)
パラメーター
startPoint
PointF
パス図形の最初のセグメントの開始点。
isClosed
bool
パスが閉じているかどうかを指定します。trueに設定すると、ストロークは「閉じた」状態で描画され、すなわち、パス図形の最後のセグメントの最後の点がStartPoint属性で指定された点に接続されます。そうでない場合、ストロークは「開いた」状態で描画され、最後の点は開始点に接続されません。パス図形がストロークを指定するPath要素で使用される場合にのみ適用されます。
戻り値
新しいパス図形。
CreatePathFigure(PointF, List, bool)
新しいパス図形を作成します。
public XpsPathFigure CreatePathFigure(PointF startPoint, List<xpspathsegment> segments, bool isClosed = false)
パラメーター
startPoint
PointF
パス図形の最初のセグメントの開始点。
segments
List<XpsPathSegment>
パスセグメントのリスト。
isClosed
bool
パスが閉じているかどうかを指定します。trueに設定すると、ストロークは「閉じた」状態で描画され、すなわち、パス図形の最後のセグメントの最後の点がStartPoint属性で指定された点に接続されます。そうでない場合、ストロークは「開いた」状態で描画され、最後の点は開始点に接続されません。パス図形がストロークを指定するPath要素で使用される場合にのみ適用されます。
戻り値
新しいパス図形。
CreatePathGeometry(string)
省略形で指定された新しいパス幾何を作成します。
public XpsPathGeometry CreatePathGeometry(string abbreviatedGeometry)
パラメーター
abbreviatedGeometry
string
パス幾何の省略形。
戻り値
新しいパス幾何。
CreatePathGeometry()
新しいパス幾何を作成します。
public XpsPathGeometry CreatePathGeometry()
戻り値
新しいパス幾何。
CreatePathGeometry(List<xpspathfigure>)
指定されたパス図形のリストで新しいパス幾何を作成します。
public XpsPathGeometry CreatePathGeometry(List<xpspathfigure> pathFigures)
パラメーター
pathFigures
List<XpsPathFigure>
パス図形のリスト。
戻り値
新しいパス幾何。
CreatePolyBezierSegment(PointF[], bool)
新しい一連の三次ベジェ曲線を作成します。
public XpsPolyBezierSegment CreatePolyBezierSegment(PointF[] points, bool isStroked = true)
パラメーター
points
PointF[]
複数のベジェセグメントの制御点。
isStroked
bool
このパスセグメントのストロークが描画されるかどうかを指定します。
戻り値
新しい三次ベジェ曲線セグメント。
CreatePolyLineSegment(PointF[], bool)
任意の数の個別の頂点を含む新しい多角形描画を作成します。
public XpsPolyLineSegment CreatePolyLineSegment(PointF[] points, bool isStroked = true)
パラメーター
points
PointF[]
多くのセグメントを定義するための座標のセット。
isStroked
bool
このパスセグメントのストロークが描画されるかどうかを指定します。
戻り値
新しい多角形描画セグメント。
CreatePolyQuadraticBezierSegment(PointF[], bool)
前の点から始まり、指定された制御点を使用して一連の二次ベジェ曲線を作成します。
public XpsPolyQuadraticBezierSegment CreatePolyQuadraticBezierSegment(PointF[] points, bool isStroked = true)
パラメーター
points
PointF[]
複数の二次ベジェセグメントの制御点。
isStroked
bool
このパスセグメントのストロークが描画されるかどうかを指定します。
戻り値
新しい二次ベジェ曲線セグメント。
CreateRadialGradientBrush(List<xpsgradientstop>, PointF, PointF, float, float)
新しい放射状グラデーションブラシを作成します。
public XpsRadialGradientBrush CreateRadialGradientBrush(List<xpsgradientstop> gradientStops, PointF center, PointF gradientOrigin, float radiusX, float radiusY)
パラメーター
gradientStops
List<XpsGradientStop>
グラデーションストップのリスト。
center
PointF
放射状グラデーションの中心点(すなわち、楕円の中心)。
gradientOrigin
PointF
放射状グラデーションの起点。
radiusX
float
放射状グラデーションを定義する楕円のx次元の半径。
radiusY
float
放射状グラデーションを定義する楕円のy次元の半径。
戻り値
新しい放射状グラデーションブラシ。
CreateRadialGradientBrush(PointF, PointF, float, float)
新しい放射状グラデーションブラシを作成します。
public XpsRadialGradientBrush CreateRadialGradientBrush(PointF center, PointF gradientOrigin, float radiusX, float radiusY)
パラメーター
center
PointF
放射状グラデーションの中心点(すなわち、楕円の中心)。
gradientOrigin
PointF
放射状グラデーションの起点。
radiusX
float
放射状グラデーションを定義する楕円のx次元の半径。
radiusY
float
放射状グラデーションを定義する楕円のy次元の半径。
戻り値
新しい放射状グラデーションブラシ。
CreateSolidColorBrush(XpsColor)
新しいソリッドカラーブラシを作成します。
public XpsSolidColorBrush CreateSolidColorBrush(XpsColor color)
パラメーター
color
XpsColor
塗りつぶし要素のための色。
戻り値
新しいソリッドカラーブラシ。
CreateSolidColorBrush(Color)
新しいソリッドカラーブラシを作成します。
public XpsSolidColorBrush CreateSolidColorBrush(Color color)
パラメーター
color
Color
塗りつぶし要素のための色。
戻り値
新しいソリッドカラーブラシ。
CreateVisualBrush(XpsContentElement, RectangleF, RectangleF)
新しいビジュアルブラシを作成します。
public XpsVisualBrush CreateVisualBrush(XpsContentElement element, RectangleF viewbox, RectangleF viewport)
パラメーター
element
XpsContentElement
ビジュアルブラシのVisualプロパティのためのXPS要素(Canvas、Path、またはGlyphs)。
viewbox
RectangleF
ブラシのソースコンテンツの位置と寸法。
viewport
RectangleF
ブラシが適用される領域を埋めるために(可能性として繰り返し)適用されるプライムブラシタイルの含まれる座標空間内の領域。
戻り値
新しいビジュアルブラシ。
Dispose()
インスタンスを破棄します。
public void Dispose()
GetDocumentPrintTicket(int)
documentIndex
でインデックス付けされたドキュメントの印刷チケットを返します。
public DocumentPrintTicket GetDocumentPrintTicket(int documentIndex)
パラメーター
documentIndex
int
印刷チケットを返すドキュメントのインデックス。
戻り値
ドキュメントの印刷チケット。
GetPagePrintTicket(int, int)
documentIndex
でインデックス付けされたドキュメント内のpageIndex
でインデックス付けされたページの印刷チケットを返します。
public PagePrintTicket GetPagePrintTicket(int documentIndex, int pageIndex)
パラメーター
documentIndex
int
ドキュメントのインデックス。
pageIndex
int
印刷チケットを返すページのインデックス。
戻り値
ページの印刷チケット。
Insert<t>(int, T)
アクティブページのindex
位置に要素(Canvas、Path、またはGlyphs)を挿入します。
public T Insert<t>(int index, T element) where T : XpsContentElement
パラメーター
index
int
element
を挿入する位置。
element
T
挿入する要素。
戻り値
T
挿入された要素。
型パラメーター
T
要素の型。
InsertCanvas(int)
アクティブページのindex
位置に新しいキャンバスを挿入します。
public XpsCanvas InsertCanvas(int index)
パラメーター
index
int
新しいキャンバスを挿入する位置。
戻り値
挿入されたキャンバス。
InsertDocument(int, bool)
デフォルトのページサイズで空のドキュメントをindex
位置に挿入します。
public void InsertDocument(int index, bool activate = true)
パラメーター
index
int
ドキュメントを挿入する位置。
activate
bool
挿入されたドキュメントをアクティブとして選択するかどうかを示すフラグ。
InsertDocument(int, float, float, bool)
最初のページの寸法width
とheight
で空のドキュメントをindex
位置に挿入します。
public void InsertDocument(int index, float width, float height, bool activate = true)
パラメーター
index
int
ドキュメントを挿入する位置。
width
float
最初のページの幅。
height
float
最初のページの高さ。
activate
bool
挿入されたドキュメントをアクティブとして選択するかどうかを示すフラグ。
InsertGlyphs(int, string, float, FontStyle, float, float, string)
アクティブページのindex
位置に新しいグリフを挿入します。
public XpsGlyphs InsertGlyphs(int index, string fontFamily, float fontSize, FontStyle fontStyle, float originX, float originY, string unicodeString)
パラメーター
index
int
新しいグリフを挿入する位置。
fontFamily
string
フォントファミリー。
fontSize
float
フォントサイズ。
fontStyle
FontStyle
フォントスタイル。
originX
float
グリフの原点X座標。
originY
float
グリフの原点Y座標。
unicodeString
string
印刷される文字列。
戻り値
挿入されたグリフ。
InsertGlyphs(int, XpsFont, float, float, float, string)
アクティブページのindex
位置に新しいグリフを挿入します。
public XpsGlyphs InsertGlyphs(int index, XpsFont font, float fontSize, float originX, float originY, string unicodeString)
パラメーター
index
int
新しいグリフを挿入する位置。
font
XpsFont
フォントリソース。
fontSize
float
フォントサイズ。
originX
float
グリフの原点X座標。
originY
float
グリフの原点Y座標。
unicodeString
string
印刷される文字列。
戻り値
挿入されたグリフ。
InsertPage(int, bool)
デフォルトのページサイズで空のページをドキュメントにindex
位置に挿入します。
public XpsPage InsertPage(int index, bool activate = true)
パラメーター
index
int
ページを挿入する位置。
activate
bool
挿入されたページをアクティブとして選択するかどうかを示すフラグ。
戻り値
挿入されたページ。
InsertPage(int, float, float, bool)
指定されたwidth
とheight
の空のページをドキュメントにindex
位置に挿入します。
public XpsPage InsertPage(int index, float width, float height, bool activate = true)
パラメーター
index
int
ページを挿入する位置。
width
float
新しいページの幅。
height
float
新しいページの高さ。
activate
bool
挿入されたページをアクティブとして選択するかどうかを示すフラグ。
戻り値
挿入されたページ。
InsertPage(int, XpsPage, bool)
index
位置にドキュメントにページを挿入します。
public XpsPage InsertPage(int index, XpsPage page, bool activate = true)
パラメーター
index
int
ページを追加する位置。
page
XpsPage
挿入するページ。
activate
bool
挿入されたページをアクティブとして選択するかどうかを示すフラグ。
戻り値
挿入されたページ。
InsertPath(int, XpsPathGeometry)
アクティブページのindex
位置に新しいパスを挿入します。
public XpsPath InsertPath(int index, XpsPathGeometry data)
パラメーター
index
int
新しいパスを挿入する位置。
data
XpsPathGeometry
パスの形状。
戻り値
挿入されたパス。
Merge(string[], string)
複数のXPSファイルを1つのXPSドキュメントにマージします。
public void Merge(string[] filesForMerge, string outXpsFilePath)
パラメーター
filesForMerge
string[]
このドキュメントとマージするXPSファイル。
outXpsFilePath
string
出力Xpsファイルのパス。
Merge(string[], Stream)
複数のXPSファイルを1つのXPSドキュメントにマージします。
public void Merge(string[] filesForMerge, Stream outStream)
パラメーター
filesForMerge
string[]
このドキュメントとマージするXPSファイル。
outStream
Stream
マージされたXPSドキュメントを保存する出力ストリーム。
MergeToPdf(string[], string, PdfSaveOptions)
Aspose.Page.Deviceインスタンスを使用してXPSドキュメントをPDFにマージします。
public void MergeToPdf(string[] filesForMerge, string outPdfFilePath, PdfSaveOptions options)
パラメーター
filesForMerge
string[]
出力デバイスにマージするためのXPSファイル。
outPdfFilePath
string
出力PDFファイルのパス。
options
PdfSaveOptions
ドキュメントの保存オプション。
MergeToPdf(string[], Stream, PdfSaveOptions)
Aspose.Page.Deviceインスタンスを使用してXPSドキュメントをPDFにマージします。
public void MergeToPdf(string[] filesForMerge, Stream pdfStream, PdfSaveOptions options)
パラメーター
filesForMerge
string[]
出力デバイスにマージするためのXPSファイル。
pdfStream
Stream
出力PDFストリーム。
options
PdfSaveOptions
ドキュメントの保存オプション。
Remove<t>(T)
アクティブページから要素を削除します。
public T Remove<t>(T element) where T : XpsContentElement
パラメーター
element
T
削除する要素。
戻り値
T
削除された要素。
型パラメーター
T
要素の型。
RemoveAt(int)
アクティブページからindex
位置の要素を削除します。
public XpsContentElement RemoveAt(int index)
パラメーター
index
int
削除すべき要素の位置。
戻り値
削除された要素。
RemoveDocumentAt(int)
index
位置のドキュメントを削除します。
public void RemoveDocumentAt(int index)
パラメーター
index
int
削除すべきドキュメントの位置。
RemovePage(XpsPage)
ドキュメントからページを削除します。
public XpsPage RemovePage(XpsPage page)
パラメーター
page
XpsPage
削除するページ。
戻り値
削除されたページ。
RemovePageAt(int)
index
位置のドキュメントからページを削除します。
public XpsPage RemovePageAt(int index)
パラメーター
index
int
削除すべきページの位置。
戻り値
削除されたページ。
Save(string)
XPSドキュメントをpath
にあるXPSファイルに保存します。
public void Save(string path)
パラメーター
path
string
ドキュメントの場所。
Save(Stream)
XPSドキュメントをストリームに保存します。
public void Save(Stream stream)
パラメーター
stream
Stream
保存するXPSドキュメントのストリーム。
SaveAsImage(ImageSaveOptions)
ドキュメントをビットマップ画像形式で保存します。
public byte[][][] SaveAsImage(ImageSaveOptions options)
パラメーター
options
ImageSaveOptions
ドキュメントをビットマップ画像形式で保存するためのオプション。
戻り値
byte[][][]
結果として得られる画像のバイト配列。最初の次元は内部ドキュメント用で、2番目の次元は内部ドキュメント内のページ用です。
SaveAsPdf(string, PdfSaveOptions)
ドキュメントをPDF形式で保存します。
public void SaveAsPdf(string outPdfFilePath, PdfSaveOptions options)
パラメーター
outPdfFilePath
string
出力PDFファイルのパス。
options
PdfSaveOptions
ドキュメントをPDF形式で保存するためのオプション。
SaveAsPdf(Stream, PdfSaveOptions)
ドキュメントをPDF形式で保存します。
public void SaveAsPdf(Stream stream, PdfSaveOptions options)
パラメーター
stream
Stream
出力PDFファイルを書き込むストリーム。
options
[PdfSaveOptions]