API Reference
Class
RtfUserProperty
Custom document property from the RTF \userprops destination.
Inheritance
- Object
- RtfUserProperty
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method RtfDocument.AddUserProperty
- Method RtfDocument.AddUserProperty
- Property RtfDocument.UserProperties
- Method RtfUserProperty.Boolean
- Method RtfUserProperty.DateTime
- Method RtfUserProperty.Integer
- Method RtfUserProperty.Number
- Method RtfUserProperty.Text
Accepted by parameters
- Method RtfDocument.AddUserProperty
- Method RtfLosslessEditor.SetUserProperty
Constructors
public RtfUserProperty(String name, Nullable<Int32> typeCode = null, String staticValue = null) #Creates a custom property.
Parameters
- name System.String
- typeCode System.Nullable{System.Int32} = null
- staticValue System.String = null
Methods
public static RtfUserProperty Boolean(String name, Boolean value) #Returns:
RtfUserPropertyCreates a boolean custom property.
Parameters
- name System.String
- value System.Boolean
public static RtfUserProperty DateTime(String name, DateTime value) #Returns:
RtfUserPropertyCreates a date/time custom property.
Parameters
- name System.String
- value System.DateTime
public static RtfUserProperty Integer(String name, Int32 value) #Returns:
RtfUserPropertyCreates an integer custom property.
Parameters
- name System.String
- value System.Int32
public static RtfUserProperty Number(String name, Double value) #Returns:
RtfUserPropertyCreates a numeric custom property.
Parameters
- name System.String
- value System.Double
public static RtfUserProperty Text(String name, String value) #Returns:
RtfUserPropertyCreates a text custom property.
Parameters
- name System.String
- value System.String
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Name { get; set; } #Property name from \propname.
public Nullable<Int32> TypeCode { get; set; } #RTF property type code from \proptype.
public String StaticValue { get; set; } #Static property value from \staticval.
public String LinkedValue { get; set; } #Linked property value from \linkval.