Class XYZExplicitDestination

XYZExplicitDestination sınıfı

Sayfayı, sol üst köşesi pencerenin sol üst köşesine yerleştirilmiş (sol, üst) koordinatları ile ve sayfanın içeriğini zoom faktörü ile büyütülmüş olarak gösteren açık bir hedefi temsil eder. Sol, üst veya zoom parametrelerinden herhangi biri için null değeri, o parametrenin mevcut değerinin değişmeden korunacağını belirtir. 0 zoom değeri, null değeri ile aynı anlama gelir.

public sealed class XYZExplicitDestination : ExplicitDestination

Yapıcılar

İsimAçıklama
XYZExplicitDestination(int, double, double, double)Uzak açık hedef oluşturur.
XYZExplicitDestination(Page, double, double, double)Yerel açık hedef oluşturur.

Özellikler

İsimAçıklama
Left { get; }Pencerenin sol üst köşesinin sol yatay koordinatını alır.
Page { get; }Hedef sayfa nesnesini alır.
PageNumber { get; }Hedef sayfa numarasını alır.
Top { get; }Pencerenin sol üst köşesinin üst dikey koordinatını alır.
Zoom { get; }Zoom faktörünü alır.

Metotlar

İsimAçıklama
static CreateDestination(Page, double, double, double, bool)Gerekirse sayfa döndürmesini dikkate alarak belirtilen sayfa konumuna hedef oluşturur.
static CreateDestinationToUpperLeftCorner(Page)Belirtilen sayfaya hedef oluşturur.
static CreateDestinationToUpperLeftCorner(Page, double)Belirtilen sayfanın sol üst köşesine hedef oluşturur.
override ToString()Nesne durumunu string değerine dönüştürür. Örnek: “1 XYZ 100 200 3”.

Örnekler

Document doc = new Document("example.pdf");
XYZExplicitDestination dest = (XYZExplicitDestination)doc.Outlines[1].Destination;
string left = dest.Left;
string top = dest.Top;
string zoom = dest.Zoom;

Ayrıca Bakınız