OfficeDigitalSignatureProperty Class
Represents a custom property in a digital signature. Implements the public interface for signature properties.
Inheritance
System.Object
OfficeDigitalSignatureProperty
Namespace: Syncfusion.Office
Assembly: Syncfusion.Compression.Base.dll
Syntax
public class OfficeDigitalSignatureProperty : Object
Constructors
OfficeDigitalSignatureProperty()
Initializes a new instance of the OfficeDigitalSignatureProperty class.
Declaration
public OfficeDigitalSignatureProperty()
Examples
//Open an existing Word document from a file
WordDocument document = new WordDocument(@"C:\Data\SampleDocument.docx");
//Create a new signature property
OfficeDigitalSignatureProperty property = new OfficeDigitalSignatureProperty();
property.Name = "Author";
property.Value = "Syncfusion";
Console.WriteLine(property.Name + " = " + property.Value);
document.Save(@"C:\Data\SampleDocument.docx", FormatType.Docx);
document.Close();
OfficeDigitalSignatureProperty(String, String)
Initializes a new instance of the OfficeDigitalSignatureProperty class with name and value.
Declaration
public OfficeDigitalSignatureProperty(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The property name. |
| System.String | value | The property value. |
Examples
//Open an existing Word document from a file
WordDocument document = new WordDocument(@"C:\Data\SampleDocument.docx");
//Create a signature property with a name and value
OfficeDigitalSignatureProperty property = new OfficeDigitalSignatureProperty("Author", "Syncfusion");
Console.WriteLine(property.Name + " = " + property.Value);
document.Close();
Properties
Name
Gets the property name.
Declaration
public string Name { get; }
Property Value
| Type |
|---|
| System.String |
Examples
//Open a signed Word document from a file
WordDocument document = new WordDocument(@"C:\Data\SignedDocument.docx");
//Create a signature property with a name and value
OfficeDigitalSignatureProperty property = new OfficeDigitalSignatureProperty("Author", "Syncfusion");
//Read the property name
string name = property.Name;
Console.WriteLine(name);
document.Close();
Value
Gets the property value.
Declaration
public string Value { get; }
Property Value
| Type |
|---|
| System.String |
Examples
//Open a signed Word document from a file
WordDocument document = new WordDocument(@"C:\Data\SignedDocument.docx");
//Create a signature property with a name and value
OfficeDigitalSignatureProperty property = new OfficeDigitalSignatureProperty("Author", "Syncfusion");
//Read the property value
string value = property.Value;
Console.WriteLine(value);
document.Close();