Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfUserProperty

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Source revision
ba882f6b0d07 with working tree changes
Implements
IRtfCloneable
Modifiers
sealed

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.

Accepted by parameters 2

Constructors

public RtfUserProperty(string name, int? typeCode = null, string? staticValue = null) #

Creates a custom property.

Parameters

name string required
typeCode int? = null optional
staticValue string? = null optional

Methods

public static RtfUserProperty Boolean(string name, bool value) #

Creates a boolean custom property.

Parameters

name string required
value bool required
public static RtfUserProperty DateTime(string name, DateTime value) #

Creates a date/time custom property.

Parameters

name string required
value System.DateTime required
public static RtfUserProperty Integer(string name, int value) #

Creates an integer custom property.

Parameters

name string required
value int required
public static RtfUserProperty Number(string name, double value) #

Creates a numeric custom property.

Parameters

name string required
value double required
public static RtfUserProperty Text(string name, string value) #

Creates a text custom property.

Parameters

name string required
value string required

Properties

public string Name { get; set; } #

Property name from \propname.

public int? 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.

Fields

public const int TextType #

Text property type code used by common RTF producers.

Value: 30
public const int IntegerType #

Integer property type code used by common RTF producers.

Value: 3
public const int NumberType #

Floating-point property type code used by common RTF producers.

Value: 5
public const int BooleanType #

Boolean property type code used by common RTF producers.

Value: 11
public const int DateTimeType #

Date/time property type code used by common RTF producers.

Value: 64