Class
RtfUserProperty
OfficeIMO.Rtf
Custom document property from the RTF \userprops destination.
Inheritance
- object
- RtfUserProperty
Usage
Explore 9 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Method RtfDocument.AddUserProperty
- Property RtfDocument.UserProperties
- Method RtfUserProperty.Boolean
- Method RtfUserProperty.DateTime
- Method RtfUserProperty.Integer
- Method RtfUserProperty.Number
- Method RtfUserProperty.Text
Accepted by parameters 2
- Method RtfDocument.AddUserProperty
- Method RtfLosslessEditor.SetUserProperty
Constructors
public RtfUserProperty(string name, int? typeCode = null, string? staticValue = null) #Creates a custom property.
Parameters
- name string
- typeCode int? = null
- staticValue string? = null
Methods
public static RtfUserProperty Boolean(string name, bool value) #Creates a boolean custom property.
Parameters
- name string
- value bool
Returns
RtfUserPropertypublic static RtfUserProperty DateTime(string name, DateTime value) #Creates a date/time custom property.
Parameters
- name string
- value System.DateTime
Returns
RtfUserPropertypublic static RtfUserProperty Integer(string name, int value) #Creates an integer custom property.
Parameters
- name string
- value int
Returns
RtfUserPropertypublic static RtfUserProperty Number(string name, double value) #Creates a numeric custom property.
Parameters
- name string
- value double
Returns
RtfUserPropertypublic static RtfUserProperty Text(string name, string value) #Creates a text custom property.
Parameters
- name string
- value string
Returns
RtfUserPropertyInherited Methods
Properties
public string? StaticValue { get; set; } #Static property value from \staticval.
Fields
public const int NumberType #Floating-point property type code used by common RTF producers.
Value:
5