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

Class ContentMarkProperties

Editable marked-content property list values. String values are written as PdfString entries in the property dictionary.

Inheritance
object
ContentMarkProperties
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Pdf.Content.Marked
Assembly: DRIT.Pdf.dll
Syntax
public sealed class ContentMarkProperties

Methods

SetInteger(string, int)

Sets an integer property in the marked-content property list.

Declaration
public void SetInteger(string key, int value)
Parameters
Type Name Description
string key
int value

SetString(string, string)

Sets or removes a string property in the marked-content property list. Pass null value to remove the property.

Declaration
public void SetString(string key, string value)
Parameters
Type Name Description
string key

The property key. Must not be null or empty.

string value

The string value, or null to remove.

TryGetInteger(string, out int)

Tries to get an integer property value.

Declaration
public bool TryGetInteger(string key, out int value)
Parameters
Type Name Description
string key

The property key.

int value

The integer value, if found.

Returns
Type Description
bool

True if the property exists, false otherwise.

TryGetString(string, out string?)

Tries to get a string property value.

Declaration
public bool TryGetString(string key, out string? value)
Parameters
Type Name Description
string key

The property key.

string value

The string value, if found.

Returns
Type Description
bool

True if the property exists, false otherwise.

Back to top

DR-IT Software documentation

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

Generated by DocFX