Skip to main content
Skip table of contents

PdfDiv (1)

PdfDiv Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf
  iTextSharp.text.pdf.PdfDiv[[PdfDiv]]
  end
  subgraph iTextSharp.text
  iTextSharp.text.IElement[[IElement]]
  class iTextSharp.text.IElement interfaceStyle;
  end
  subgraph iTextSharp.text.api
  iTextSharp.text.api.ISpaceable[[ISpaceable]]
  class iTextSharp.text.api.ISpaceable interfaceStyle;
  end
  subgraph iTextSharp.text.pdf.interfaces
  iTextSharp.text.pdf.interfaces.IAccessibleElement[[IAccessibleElement]]
  class iTextSharp.text.pdf.interfaces.IAccessibleElement interfaceStyle;
  end
iTextSharp.text.IElement --> iTextSharp.text.pdf.PdfDiv
iTextSharp.text.api.ISpaceable --> iTextSharp.text.pdf.PdfDiv
iTextSharp.text.pdf.interfaces.IAccessibleElement --> iTextSharp.text.pdf.PdfDiv

Members

Properties

Public properties
TypeNameMethods
BaseColorBackgroundColorget, set
ImageBackgroundImageset
BorderTopStyleBorderStyleget, set
Nullable<float>Bottomget, set
IList<Chunk>Chunksget
List<IElement>Contentget
floatContentHeightget, set
floatContentWidthget, set
DisplayTypeDisplayget, set
FloatTypeFloatget, set
FloatLayoutFloatLayoutget, set
Nullable<float>Heightget, set
AccessibleElementIdIDget, set
boolIsInlineget
boolKeepTogetherget, set
Nullable<float>Leftget, set
floatPaddingBottomget, set
floatPaddingLeftget, set
floatPaddingRightget, set
floatPaddingTopget, set
Nullable<float>PercentageHeightget, set
Nullable<float>PercentageWidthget, set
PositionTypePositionget, set
Nullable<float>Rightget, set
PdfNameRoleget, set
intRunDirectionget, set
floatSpacingAfterget, set
floatSpacingBeforeget, set
intTextAlignmentget, set
Nullable<float>Topget, set
intTypeget
Nullable<float>Widthget, set
floatYLineget

Methods

Public methods
ReturnsName
voidAddElement(IElement element)
PdfObjectGetAccessibleAttribute(PdfName key)
Dictionary<PdfName, PdfObject>GetAccessibleAttributes()
boolIsContent()
boolIsNestable()
intLayout(PdfContentByte canvas, bool useAscender, bool simulate, float llx, float lly, float urx, float ury)
boolProcess(IElementListener listener)
voidSetAccessibleAttribute(PdfName key, PdfObject value)
voidSetBackgroundImage(Image image, float width, float height)
floatgetActualHeight()
floatgetActualWidth()

Details

Inheritance

Nested types

Enums
  • FloatType
  • PositionType
  • DisplayType
  • BorderTopStyle

Constructors

PdfDiv

Source code

public PdfDiv()

Methods

getActualHeight

Source code

public virtual float getActualHeight()
getActualWidth

Source code

public virtual float getActualWidth()
SetBackgroundImage

Source code

public virtual void SetBackgroundImage(Image image, float width, float height)
Arguments
TypeNameDescription
Imageimage
floatwidth
floatheight
IsContent

Source code

public virtual bool IsContent()
IsNestable

Source code

public virtual bool IsNestable()
Process

Source code

public virtual bool Process(IElementListener listener)
Arguments
TypeNameDescription
IElementListenerlistener
AddElement

Source code

public virtual void AddElement(IElement element)
Arguments
TypeNameDescription
IElementelement
Layout

Source code

public virtual int Layout(PdfContentByte canvas, bool useAscender, bool simulate, float llx, float lly, float urx, float ury)
Arguments
TypeNameDescription
PdfContentBytecanvas
booluseAscender
boolsimulate
floatllx
floatlly
floaturx
floatury
GetAccessibleAttribute

Source code

public virtual PdfObject GetAccessibleAttribute(PdfName key)
Arguments
TypeNameDescription
PdfNamekey
SetAccessibleAttribute

Source code

public virtual void SetAccessibleAttribute(PdfName key, PdfObject value)
Arguments
TypeNameDescription
PdfNamekey
PdfObjectvalue
GetAccessibleAttributes

Source code

public virtual Dictionary<PdfName, PdfObject> GetAccessibleAttributes()

Properties

Left
public virtual Nullable<float> Left { get; set; }
Top
public virtual Nullable<float> Top { get; set; }
Right
public virtual Nullable<float> Right { get; set; }
Bottom
public virtual Nullable<float> Bottom { get; set; }
Width
public virtual Nullable<float> Width { get; set; }
Height
public virtual Nullable<float> Height { get; set; }
PercentageHeight
public virtual Nullable<float> PercentageHeight { get; set; }
PercentageWidth
public virtual Nullable<float> PercentageWidth { get; set; }
ContentWidth
public virtual float ContentWidth { get; set; }
ContentHeight
public virtual float ContentHeight { get; set; }
TextAlignment
public virtual int TextAlignment { get; set; }
PaddingLeft
public virtual float PaddingLeft { get; set; }
PaddingRight
public virtual float PaddingRight { get; set; }
PaddingTop
public virtual float PaddingTop { get; set; }
PaddingBottom
public virtual float PaddingBottom { get; set; }
Float
public virtual FloatType Float { get; set; }
Position
public virtual PositionType Position { get; set; }
FloatLayout
public virtual FloatLayout FloatLayout { get; set; }
Display
public virtual DisplayType Display { get; set; }
BackgroundColor
public virtual BaseColor BackgroundColor { get; set; }
BackgroundImage
public virtual Image BackgroundImage { set; }
YLine
public virtual float YLine { get; }
RunDirection
public virtual int RunDirection { get; set; }
SpacingBefore
public virtual float SpacingBefore { get; set; }
SpacingAfter
public virtual float SpacingAfter { get; set; }
Content
public virtual List<IElement> Content { get; }
BorderStyle
public virtual BorderTopStyle BorderStyle { get; set; }
KeepTogether
public virtual bool KeepTogether { get; set; }
Chunks
public virtual IList<Chunk> Chunks { get; }
Type
public virtual int Type { get; }
Role
public virtual PdfName Role { get; set; }
ID
public virtual AccessibleElementId ID { get; set; }
IsInline
public virtual bool IsInline { get; }

Generated with ModularDoc

JavaScript errors detected

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

If this problem persists, please contact our support.