NamedDestination
概要
NamedDestination は Aspose.PDF の .NET 用 FOSS のクラスです。継承元: Aspose.Pdf.Annotations.IAppointment。
文書内の名前付きデスティネーションを表します(PDF32000 §12.3.2.3)。
このクラスは .NET プログラムで NamedDestination オブジェクトを操作するための8つのメソッドを提供します。利用可能なメソッドは、CreateFitDestination、CreateFitHDestination、CreateFitRDestination、CreateFitVDestination、CreateXYZDestination、NamedDestination、ToStringです。Aspose.PDF の .NET 用 FOSS パッケージをインストールすれば、すべての公開メンバーは任意の .NET アプリケーションからアクセス可能です。プロパティ: Bottom、Left、Name、PageIndex、PageNumber、Right、およびその他3つ。
プロパティ
| 名前 | 型 | アクセス | 説明 |
|---|---|---|---|
Name | string | 読み取り | 宛先の名前。 |
PageIndex | int | 読み取り | 対象ページインデックス(0ベース)、解決できない場合は -1。 |
PageNumber | int | 読み取り | 対象ページ番号(1ベース)、解決できない場合は0。 |
Type | string | 読み取り | 目的地タイプ(「Fit」「XYZ」「FitH」など)。 |
Left | double? | 読み取り | 左座標(XYZ、FitV、FitR、FitBV の場合)、または null。 |
Top | double? | 読み取り | 上座標(XYZ、FitH、FitR、FitBH 用)、または null。 |
Right | double? | 読み取り | 右座標(FitR のみ用)、または null。 |
Bottom | double? | 読み取り | 下座標(FitR のみ用)、または null。 |
Zoom | double? | 読み取り | ズーム係数(XYZ のみ対象;null = 現在の設定を継承)。 |
メソッド
| シグネチャ | 説明 |
|---|---|
NamedDestination(name: string) | 名前付きデスティネーション参照を作成する(名前のみ、デスティネーションの詳細は後で解決)。 |
NamedDestination(document: Document, name: string) | ドキュメントにスコープされた名前付きデスティネーション参照を作成する。 |
CreateFitDestination(pageIndex: int) | /Fit デスティネーションを作成: ページ全体がウィンドウ内に収まるように拡大縮小して表示します。 |
CreateFitHDestination(pageIndex: int, top: double) | /FitH デスティネーションを作成: ページの垂直位置 top をウィンドウ上部に設定し、拡大率を幅に合わせて表示します。 |
CreateFitVDestination(pageIndex: int, left: double) | /FitV デスティネーションを作成: ページの水平位置 left をウィンドウ左端に設定し、拡大率を高さに合わせて表示します。 |
CreateXYZDestination(pageIndex: int, left: double, top: double, zoom: double) | /XYZ デスティネーションを作成: ページを位置 (left, top) に表示し、ズーム係数 zoom を適用します。 |
CreateFitRDestination(pageIndex: int, left: double, bottom: double, right: double, top: double) | /FitR の宛先を作成: (left, bottom, right, top) で指定された矩形に合わせてページをズーム表示します。 |
ToString() | この予約対象の人が読める表現。 |