cete.dynamicpdf.userpropertylist
UserPropertyList
- Namespace: ceTe.DynamicPDF
- Assemblies: DynamicPDF.CoreSuite.dll
Represents an user properties attribute object.
public class UserPropertyList : AttributeType
Public Class UserPropertyList
Inherits AttributeType
Inheritance: Object → AttributeType → UserPropertyList
Licensing Info
This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Examples
The following example shows how to use an user property list.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
Module MyModule
Sub Main()
' Create a PDF Document
Dim MyDocument As Document = New Document
' Specify document as a tagged PDF
MyDocument.Tag = New TagOptions()
' Create a page and add it to the document
Dim MyPage As Page = New Page()
MyDocument.Pages.Add(MyPage)
' Create a text area
Dim MyTextArea As TextArea = New TextArea("This is the text of a TextArea", _
100, 100, 400, 30, ceTe.DynamicPDF.Font.HelveticaBoldOblique, 18)
' Create a structure element
Dim MyStructureElement As StructureElement = New StructureElement(TagType.Paragraph, True)
' Create an user property list and add properties to it
Dim MyList As UserPropertyList = New UserPropertyList()
MyList.Add("Height", 100)
MyList.Add("Align", "Left")
' Add user property list to the structure element
MyStructureElement.AttributeLists.Add(MyList)
' Tag the text area with the structure element
MyTextArea.Tag = MyStructureElement
' Add the text area to the page
MyPage.Elements.Add(MyTextArea)
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;
public class Example
{
public static void CreatePDF(string outputPath)
{
// Create a PDF Document
Document document = new Document();
// Specify document as a tagged PDF
document.Tag = new TagOptions();
// Create a page and add it to the document
Page page = new Page();
document.Pages.Add(page);
// Create a text area
TextArea textArea = new TextArea("This is the " + "text of a TextArea", 100, 100, 400, 30,
ceTe.DynamicPDF.Font.HelveticaBoldOblique, 18);
// Create a structure element
StructureElement structureElement = new StructureElement(TagType.Paragraph, true);
// Create an user property list and add properties to it
UserPropertyList list = new UserPropertyList();
list.Add("Height", 100);
list.Add("Align", "Left");
// Add user property list to the structure element
structureElement.AttributeLists.Add(list);
// Tag the text area with the structure element
textArea.Tag = structureElement;
// Add the text area to the page
page.Elements.Add(textArea);
// Save the PDF document
document.Draw(outputPath);
}
}
Constructors
UserPropertyList()
Initializes a new instance of the UserPropertyList class.
public UserPropertyList()
Public Sub New ()
Licensing Info
This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Properties
Owner
Gets the attribute owner.
public AttributeOwner Owner { get; }
Public Property Owner As AttributeOwner
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Methods
Add(String, Boolean)
Adds a user property to the user PropertyList.
public void Add(string name, bool value)
Sub Add(name As String, value As Boolean)
Parameters
- name: String
Name of the property.
- value: Boolean
Value of the property.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Add(String, Boolean, String)
Adds a user property to the user PropertyList.
public void Add(string name, bool value, string format)
Sub Add(name As String, value As Boolean, format As String)
Parameters
- name: String
Name of the property.
- value: Boolean
Value of the property.
- format: String
Format of the property value.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Add(String, Boolean, String, Boolean)
Adds a user property to the user PropertyList.
public void Add(string name, bool value, string format, bool isHidden)
Sub Add(name As String, value As Boolean, format As String, isHidden As Boolean)
Parameters
- name: String
Name of the property.
- value: Boolean
Value of the property.
- format: String
Format of the property value.
- isHidden: Boolean
Specifies if attribute is hidden.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Add(String, Single)
Adds a user property to the user PropertyList.
public void Add(string name, float value)
Sub Add(name As String, value As Single)
Parameters
- name: String
Name of the property.
- value: Single
Value of the property.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Add(String, Single, String)
Adds a user property to the user PropertyList.
public void Add(string name, float value, string format)
Sub Add(name As String, value As Single, format As String)
Parameters
- name: String
Name of the property.
- value: Single
Value of the property.
- format: String
Format of the property value.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Add(String, Single, String, Boolean)
Adds a user property to the user PropertyList.
public void Add(string name, float value, string format, bool isHidden)
Sub Add(name As String, value As Single, format As String, isHidden As Boolean)
Parameters
- name: String
Name of the property.
- value: Single
Value of the property.
- format: String
Format of the property value.
- isHidden: Boolean
Specifies if attribute is hidden.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Add(String, String)
Adds a user property to the user PropertyList.
public void Add(string name, string value)
Sub Add(name As String, value As String)
Parameters
- name: String
Name of the property.
- value: String
Value of the property.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Add(String, String, String)
Adds a user property to the user PropertyList.
public void Add(string name, string value, string format)
Sub Add(name As String, value As String, format As String)
Parameters
- name: String
Name of the property.
- value: String
Value of the property.
- format: String
Format of the property value.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Add(String, String, String, Boolean)
Adds a user property to the user PropertyList.
public void Add(string name, string value, string format, bool isHidden)
Sub Add(name As String, value As String, format As String, isHidden As Boolean)
Parameters
- name: String
Name of the property.
- value: String
Value of the property.
- format: String
Format of the property value.
- isHidden: Boolean
Specifies if attribute is hidden.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.