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.
Inherited Members
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 |