iTextSharp.text.ListItem.SetIndentationLeft C# (CSharp) Метод

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

public SetIndentationLeft ( float indentation, bool autoindent ) : void
indentation float
autoindent bool
Результат void
        public void SetIndentationLeft(float indentation, bool autoindent)
        {
            if (autoindent) {
                IndentationLeft = ListSymbol.GetWidthPoint();
            }
            else {
                IndentationLeft = indentation;
            }
        }

Usage Example

Пример #1
0
 /**
  * Adds an <CODE>Object</CODE> to the <CODE>List</CODE>.
  *
  * @param    o   the object to add.
  * @return true if adding the object succeeded
  */
 public override bool Add(IElement o)
 {
     if (o is ListItem)
     {
         ListItem item  = (ListItem)o;
         Chunk    chunk = new Chunk(preSymbol, symbol.Font);
         chunk.Attributes = symbol.Attributes;
         chunk.Append(GreekAlphabetFactory.GetString(first + list.Count, lowercase));
         chunk.Append(postSymbol);
         item.ListSymbol = chunk;
         item.SetIndentationLeft(symbolIndent, autoindent);
         item.IndentationRight = 0;
         list.Add(item);
         return(true);
     }
     else if (o is List)
     {
         List nested = (List)o;
         nested.IndentationLeft = nested.IndentationLeft + symbolIndent;
         first--;
         list.Add(nested);
         return(true);
     }
     return(false);
 }
All Usage Examples Of iTextSharp.text.ListItem::SetIndentationLeft