Skip to main content
Skip table of contents

ColumnText

ColumnText Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf
  iTextSharp.text.pdf.ColumnText[[ColumnText]]
  end

Members

Properties

Public properties
TypeNameMethods
boolAdjustFirstLineget, set
intAlignmentget, set
intArabicOptionsget, set
PdfContentByteCanvasget, set
PdfContentByte[]Canvasesget, set
IList<IElement>CompositeElementsget
floatCurrentLeadingget
floatDescenderget
floatExtraParagraphSpaceget, set
floatFilledWidthget, set
floatFollowingIndentget, set
boolIgnoreSpacingBeforeget, set
floatIndentget, set
boolInheritGraphicStateget, set
floatLastXget
floatLeadingget, set
intLinesWrittenget
floatMultipliedLeadingget
floatRightIndentget, set
intRowsDrawnget
intRunDirectionget, set
floatSpaceCharRatioget, set
boolUseAscenderget, set
floatYLineget, set

Methods

Public Static methods
ReturnsName
ColumnTextDuplicate(ColumnText org)
floatFitText(Font font, string text, Rectangle rect, float maxFontSize, int runDirection)
floatGetWidth(...)
boolHasMoreText(int status)
voidShowTextAligned(...)
boolisAllowedElement(IElement element)
Public methods
ReturnsName
voidAddElement(IElement element)
voidAddText(...)
voidClearChunks()
intGo(...)
boolIsWordSplit()
ColumnTextSetACopy(ColumnText org)
voidSetColumns(float``[] leftLine, float``[] rightLine)
voidSetIndent(float indent, bool repeatFirstLineIndent)
voidSetLeading(float fixedLeading, float multipliedLeading)
voidSetSimpleColumn(...)
voidSetText(Phrase phrase)
voidUpdateFilledWidth(float w)
boolZeroHeightElement()
Protected internal methods
ReturnsName
voidSetSimpleVars(ColumnText org)
Protected methods
ReturnsName
List<float``[]>ConvertColumn(float``[] cLine)
float``[]FindLimitsOneLine()
floatFindLimitsPoint(List<float``[]> wall)
float``[]FindLimitsTwoLines()
intGoComposite(bool simulate)

Details

Constructors

ColumnText
Source code
public ColumnText(PdfContentByte canvas)
Arguments
TypeNameDescription
PdfContentBytecanvas

Methods

Duplicate
Source code
public static ColumnText Duplicate(ColumnText org)
Arguments
TypeNameDescription
ColumnTextorg
SetACopy
Source code
public virtual ColumnText SetACopy(ColumnText org)
Arguments
TypeNameDescription
ColumnTextorg
SetSimpleVars
Source code
protected internal virtual void SetSimpleVars(ColumnText org)
Arguments
TypeNameDescription
ColumnTextorg
AddText [1/2]
Source code
public virtual void AddText(Phrase phrase)
Arguments
TypeNameDescription
Phrasephrase
SetText
Source code
public virtual void SetText(Phrase phrase)
Arguments
TypeNameDescription
Phrasephrase
AddText [2/2]
Source code
public virtual void AddText(Chunk chunk)
Arguments
TypeNameDescription
Chunkchunk
AddElement
Source code
public virtual void AddElement(IElement element)
Arguments
TypeNameDescription
IElementelement
isAllowedElement
Source code
public static bool isAllowedElement(IElement element)
Arguments
TypeNameDescription
IElementelement
ConvertColumn
Source code
protected virtual List<float> ConvertColumn(float[] cLine)
Arguments
TypeNameDescription
float``[]cLine
FindLimitsPoint
Source code
protected virtual float FindLimitsPoint(List<float[]> wall)
Arguments
TypeNameDescription
List<float``[]>wall
FindLimitsOneLine
Source code
protected virtual float FindLimitsOneLine()
FindLimitsTwoLines
Source code
protected virtual float FindLimitsTwoLines()
SetColumns
Source code
public virtual void SetColumns(float[] leftLine, float[] rightLine)
Arguments
TypeNameDescription
float``[]leftLine
float``[]rightLine
SetSimpleColumn [1/4]
Source code
public virtual void SetSimpleColumn(Phrase phrase, float llx, float lly, float urx, float ury, float leading, int alignment)
Arguments
TypeNameDescription
Phrasephrase
floatllx
floatlly
floaturx
floatury
floatleading
intalignment
SetSimpleColumn [2/4]
Source code
public virtual void SetSimpleColumn(float llx, float lly, float urx, float ury, float leading, int alignment)
Arguments
TypeNameDescription
floatllx
floatlly
floaturx
floatury
floatleading
intalignment
SetSimpleColumn [3/4]
Source code
public virtual void SetSimpleColumn(float llx, float lly, float urx, float ury)
Arguments
TypeNameDescription
floatllx
floatlly
floaturx
floatury
SetSimpleColumn [4/4]
Source code
public virtual void SetSimpleColumn(Rectangle rect)
Arguments
TypeNameDescription
Rectanglerect
SetLeading
Source code
public virtual void SetLeading(float fixedLeading, float multipliedLeading)
Arguments
TypeNameDescription
floatfixedLeading
floatmultipliedLeading
SetIndent
Source code
public virtual void SetIndent(float indent, bool repeatFirstLineIndent)
Arguments
TypeNameDescription
floatindent
boolrepeatFirstLineIndent
Go [1/3]
Source code
public virtual int Go()
Go [2/3]
Source code
public virtual int Go(bool simulate)
Arguments
TypeNameDescription
boolsimulate
Go [3/3]
Source code
public virtual int Go(bool simulate, IElement elementToGo)
Arguments
TypeNameDescription
boolsimulate
IElementelementToGo
IsWordSplit
Source code
public virtual bool IsWordSplit()
ClearChunks
Source code
public virtual void ClearChunks()
GetWidth [1/2]
Source code
public static float GetWidth(Phrase phrase, int runDirection, int arabicOptions)
Arguments
TypeNameDescription
Phrasephrase
intrunDirection
intarabicOptions
GetWidth [2/2]
Source code
public static float GetWidth(Phrase phrase)
Arguments
TypeNameDescription
Phrasephrase
ShowTextAligned [1/2]
Source code
public static void ShowTextAligned(PdfContentByte canvas, int alignment, Phrase phrase, float x, float y, float rotation, int runDirection, int arabicOptions)
Arguments
TypeNameDescription
PdfContentBytecanvas
intalignment
Phrasephrase
floatx
floaty
floatrotation
intrunDirection
intarabicOptions
ShowTextAligned [2/2]
Source code
public static void ShowTextAligned(PdfContentByte canvas, int alignment, Phrase phrase, float x, float y, float rotation)
Arguments
TypeNameDescription
PdfContentBytecanvas
intalignment
Phrasephrase
floatx
floaty
floatrotation
FitText
Source code
public static float FitText(Font font, string text, Rectangle rect, float maxFontSize, int runDirection)
Arguments
TypeNameDescription
Fontfont
stringtext
Rectanglerect
floatmaxFontSize
intrunDirection
GoComposite
Source code
protected virtual int GoComposite(bool simulate)
Arguments
TypeNameDescription
boolsimulate
ZeroHeightElement
Source code
public virtual bool ZeroHeightElement()
HasMoreText
Source code
public static bool HasMoreText(int status)
Arguments
TypeNameDescription
intstatus
UpdateFilledWidth
Source code
public virtual void UpdateFilledWidth(float w)
Arguments
TypeNameDescription
floatw

Properties

Leading
public virtual float Leading { get; set; }
MultipliedLeading
public virtual float MultipliedLeading { get; }
YLine
public virtual float YLine { get; set; }
RowsDrawn
public virtual int RowsDrawn { get; }
Alignment
public virtual int Alignment { get; set; }
Indent
public virtual float Indent { get; set; }
FollowingIndent
public virtual float FollowingIndent { get; set; }
RightIndent
public virtual float RightIndent { get; set; }
CurrentLeading
public virtual float CurrentLeading { get; }
InheritGraphicState
public virtual bool InheritGraphicState { get; set; }
IgnoreSpacingBefore
public virtual bool IgnoreSpacingBefore { get; set; }
ExtraParagraphSpace
public virtual float ExtraParagraphSpace { get; set; }
SpaceCharRatio
public virtual float SpaceCharRatio { get; set; }
RunDirection
public virtual int RunDirection { get; set; }
LinesWritten
public virtual int LinesWritten { get; }
LastX
public virtual float LastX { get; }
ArabicOptions
public virtual int ArabicOptions { get; set; }
Descender
public virtual float Descender { get; }
Canvas
public virtual PdfContentByte Canvas { get; set; }
Canvases
public virtual PdfContentByte Canvases { get; set; }
CompositeElements
public virtual IList<IElement> CompositeElements { get; }
UseAscender
public virtual bool UseAscender { get; set; }
FilledWidth
public virtual float FilledWidth { get; set; }
AdjustFirstLine
public virtual bool AdjustFirstLine { get; set; }

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.