• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Content

Abstract base for all content surfaces (spec §7.8.3). A content surface is an area that accepts drawing operations and produces a PDF content stream. PageContent and FormXObject are content surfaces.

Inheritance
object
Content
FormXObject
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public abstract class Content

Properties

Bounds

Gets the bounding box of this content surface.

Declaration
public abstract PdfRect Bounds { get; }
Property Value
Type Description
PdfRect

IsEditing

Gets whether a batch edit session is in progress.

Declaration
public bool IsEditing { get; }
Property Value
Type Description
bool

Methods

BeginEdit()

Begins a batch edit session. Drawing operations are accumulated until EndEdit().

Declaration
public virtual void BeginEdit()

CancelEdit()

Cancels the current edit session, discarding all pending drawing operations since BeginEdit().

Declaration
public virtual void CancelEdit()

EndEdit()

Ends the batch edit session and finalizes pending drawing operations.

Declaration
public virtual void EndEdit()

ToString()

Returns the concatenated text of all text content elements.

Declaration
public override abstract string ToString()
Returns
Type Description
string
Overrides
object.ToString()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX