iTextSharp.text.Chunk.SetLocalDestination C# (CSharp) Method

SetLocalDestination() public method

Sets a local destination for this Chunk.
public SetLocalDestination ( string name ) : Chunk
name string the name for this destination
return Chunk
        public Chunk SetLocalDestination(string name)
        {
            return SetAttribute(LOCALDESTINATION, name);
        }

Usage Example

Exemplo n.º 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::SetLocalDestination