GetHandle() 공개 메소드

public GetHandle ( ) : IntPtr
리턴 System.IntPtr
예제 #1
0
파일: hpdf.cs 프로젝트: adminchen/papercrop
        public HPdfOutline CreateOutline(HPdfOutline parent, string title,
            HPdfEncoder encoder)
        {
            IntPtr hparent;
            IntPtr hencoder;
            IntPtr houtline;

            if (encoder != null)
            hencoder = encoder.GetHandle();
            else
            hencoder = IntPtr.Zero;

            if (parent != null)
            hparent = parent.GetHandle();
            else
            hparent = IntPtr.Zero;

            houtline = HPDF_CreateOutline(hpdf, hparent, title, hencoder);
            return new HPdfOutline(houtline);
        }
예제 #2
0
파일: hpdf.cs 프로젝트: adminchen/papercrop
        public HPdfAnnotation CreateTextAnnot(HPdfRect rect, string text,
            HPdfEncoder encoder)
        {
            IntPtr hannot;

            hannot = HPDF_Page_CreateTextAnnot(hpage, rect, text, encoder.GetHandle());
            return new HPdfAnnotation(hannot);
        }