コード例 #1
0
ファイル: MarkedSection.java プロジェクト: gmavenis/itextg
 /**
  * Creates a <CODE>Section</CODE>, add it to this <CODE>Section</CODE> and returns it.
  *
  * @param numberDepth the numberDepth of the section
  * @return a new Section object
  */
 public MarkedSection addSection(int numberDepth) {
   MarkedSection section = ((Section) element).addMarkedSection();
   section.setNumberDepth(numberDepth);
   return section;
 }
コード例 #2
0
ファイル: MarkedSection.java プロジェクト: gmavenis/itextg
 /**
  * Creates a <CODE>Section</CODE>, adds it to this <CODE>Section</CODE> and returns it.
  *
  * @param indentation the indentation of the new section
  * @return a new Section object
  */
 public MarkedSection addSection(float indentation) {
   MarkedSection section = ((Section) element).addMarkedSection();
   section.setIndentation(indentation);
   return section;
 }