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

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

Sets the generic tag Chunk.
The text for this tag can be retrieved with PdfPageEvent.
public SetGenericTag ( string text ) : Chunk
text string the text for the tag
Результат Chunk
        public Chunk SetGenericTag(string text)
        {
            return SetAttribute(GENERICTAG, text);
        }

Usage Example

Пример #1
0
        /// <summary>
        /// Returns a Phrase that has been constructed taking in account
        /// the value of some attributes.
        /// </summary>
        /// <param name="attributes">some attributes</param>
        public Phrase(Properties attributes) : this("", FontFactory.GetFont(attributes))
        {
            this.Clear();
            string value;

            if ((value = attributes.Remove(ElementTags.LEADING)) != null)
            {
                Leading = float.Parse(value, System.Globalization.NumberFormatInfo.InvariantInfo);
            }
            else if ((value = attributes.Remove(MarkupTags.CSS_KEY_LINEHEIGHT)) != null)
            {
                Leading = MarkupParser.ParseLength(value);
            }
            if ((value = attributes.Remove(ElementTags.ITEXT)) != null)
            {
                Chunk chunk = new Chunk(value);
                if ((value = attributes.Remove(ElementTags.GENERICTAG)) != null)
                {
                    chunk.SetGenericTag(value);
                }
                Add(chunk);
            }
            if (attributes.Count > 0)
            {
                MarkupAttributes = attributes;
            }
        }
All Usage Examples Of iTextSharp.text.Chunk::SetGenericTag