PdfContentMark Class
Represents a mark used to distinguish the part of the PDF content.
public sealed class PdfContentMark : PdfContentElement
Public NotInheritable Class PdfContentMark
Inherits PdfContentElement
- Inheritance:
- System.ObjectPdfContentMark
Properties
AssociatedFiles
(Optional; PDF 2.0) An array of one or more PdfFileSpecifications which denote the associated files for content marked with this PdfContentMark.
public PdfAssociatedFileCollection AssociatedFiles { get; }
Public ReadOnly Property AssociatedFiles As PdfAssociatedFileCollection
Property Value
An array of one or more PdfFileSpecifications which denote the associated files for content marked with this PdfContentMark.
ElementType
Gets the Mark value.
public override PdfContentElementType ElementType { get; }
Public Overrides ReadOnly Property ElementType As PdfContentElementType
Property Value
The Mark value.
Overrides
MarkType
Gets the type of the content mark.
public PdfContentMarkType MarkType { get; }
Public ReadOnly Property MarkType As PdfContentMarkType
Property Value
The type of the content mark.
Properties
Gets or sets the marked content properties.
The Properties of the End mark is retrieved from and set to the associated Start mark.
Use GetDictionary(PdfObject) on the returned PdfContentMarkProperties to get the underlying PdfDictionary that contains the actual properties.
If PdfContentMarkProperties value doesn't contain any PdfIndirectObject, it is set as a read-only when reading/writing the Properties from/to the underlying content stream and when setting the Properties to a new value. This is required to correctly detect content changes.
Use GetEditableProperties() method to get PdfContentMarkProperties that you want to edit.
public PdfContentMarkProperties Properties { get; set; }
Public Property Properties As PdfContentMarkProperties
Property Value
The marked content properties.
Remarks
If PdfContentMarkProperties value that is being set is associated with another PdfDocument, this property setter will automatically clone it and associate the clone with the current PdfDocument.
Tag
Gets or sets the marked content tag.
The Tag of the End mark is retrieved from and set to the associated Start mark.
Property Value
The marked content tag.
Methods
GetEditableProperties()
Gets the marked content properties that can edited.
The GetEditableProperties() of the End mark is retrieved from the associated Start mark.
Use GetDictionary(PdfObject) on the returned PdfContentMarkProperties to get the underlying PdfDictionary that contains the actual editable properties.
Use this method only if you want to edit Properties; otherwise, use Properties.
public PdfContentMarkProperties GetEditableProperties()
Public Function GetEditableProperties As PdfContentMarkProperties
Returns
The marked content properties that can edited.
ToString()
Returns a System.String that represents this PdfContentMark instance.
Returns
- System.String
A System.String that represents this PdfContentMark instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
Inherited Properties
Collection | Gets the PdfContentElementCollection that the PdfContentElement belongs to. (Inherited from PdfContentElement) |
Next | Gets the next PdfContentElement in the Collection. (Inherited from PdfContentElement) |
Previous | Gets the previous PdfContentElement in the Collection. (Inherited from PdfContentElement) |