iTextSharp.text.Chunk.SetAnchor C# (CSharp) Метод

SetAnchor() публичный Метод

Sets an anchor for this Chunk.
public SetAnchor ( Uri url ) : Chunk
url System.Uri the Uri to link to
Результат Chunk
        public Chunk SetAnchor(Uri url)
        {
            return SetAttribute(ACTION, new PdfAction(url));
        }

Same methods

Chunk::SetAnchor ( string url ) : Chunk

Usage Example

Пример #1
0
 /**
  * Applies the properties of the Anchor to a Chunk.
  * @param chunk			the Chunk (part of the Anchor)
  * @param notGotoOK		if true, this chunk will determine the local destination
  * @param localDestination	true if the chunk is a local goto and the reference a local destination
  * @return	the value of notGotoOK or false, if a previous Chunk was used to determine the local destination
  */
 virtual protected bool ApplyAnchor(Chunk chunk, bool notGotoOK, bool localDestination)
 {
     if (name != null && notGotoOK && !chunk.IsEmpty())
     {
         chunk.SetLocalDestination(name);
         notGotoOK = false;
     }
     if (localDestination)
     {
         chunk.SetLocalGoto(reference.Substring(1));
     }
     else if (reference != null)
     {
         chunk.SetAnchor(reference);
     }
     return(notGotoOK);
 }
All Usage Examples Of iTextSharp.text.Chunk::SetAnchor