Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ContentLineComponent

OfficeIMO.Email

Namespace
OfficeIMO.Email
Assembly
OfficeIMO.Email
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Ordered content-line component with properties and nested components.

Inheritance

  • object
  • ContentLineComponent

Usage

Explore 25 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 16

Constructors

public ContentLineComponent(string name) #

Creates a component such as VCALENDAR, VEVENT, VALARM, or VCARD.

Parameters

name string required

Methods

public ContentLineComponent AddComponent(string name) #

Adds a nested component and returns it.

Parameters

name string required
public ContentLineProperty AddProperty(string name, string value = "") #

Adds a property and returns it for further configuration.

Parameters

name string required
value string = "" optional
public IEnumerable<ContentLineComponent> GetComponents(string name, bool recursive = false) #

Enumerates matching nested components in document order.

Parameters

name string required
recursive bool = false optional

Returns

IEnumerable<ContentLineComponent>
public ContentLineProperty? GetFirstProperty(string name) #

Returns the first direct property matching name.

Parameters

name string required
public IEnumerable<ContentLineProperty> GetProperties(string name) #

Returns all direct properties matching name.

Parameters

name string required

Returns

IEnumerable<ContentLineProperty>
public ContentLineProperty SetProperty(string name, string value) #

Replaces all matching direct properties with one value.

Parameters

name string required
value string required

Properties

public string Name { get; set; } #

Component name.

public IList<ContentLineProperty> Properties { get; } #

Ordered component properties.

public IList<ContentLineComponent> Components { get; } #

Ordered nested components.

Extension Methods

public static ContentLineProperty AddRecurrenceRule(ContentLineComponent component, IcsRecurrenceRule rule) #

Adds an RRULE property.

Parameters

component OfficeIMO.Email.ContentLineComponent required
rule OfficeIMO.Email.IcsRecurrenceRule required
public static ContentLineProperty AddVCardText(ContentLineComponent card, string propertyName, string value) #

Adds a repeated escaped text property.

Parameters

card OfficeIMO.Email.ContentLineComponent required
propertyName string required
value string required
public static IEnumerable<IcsRecurrenceRule> GetRecurrenceRules(ContentLineComponent component) #

Parses every direct RRULE property.

Parameters

component OfficeIMO.Email.ContentLineComponent required

Returns

IEnumerable<IcsRecurrenceRule>
public static IcsTemporalValue? GetTemporalValue(ContentLineComponent component, string propertyName) #

Gets the first temporal property with the supplied name.

Parameters

component OfficeIMO.Email.ContentLineComponent required
propertyName string required
public static string? GetVCardText(ContentLineComponent card, string propertyName) #

Returns the first property value with vCard text escaping decoded.

Parameters

card OfficeIMO.Email.ContentLineComponent required
propertyName string required

Returns

string?
public static ContentLineProperty SetTemporalValue(ContentLineComponent component, string propertyName, IcsTemporalValue value) #

Creates or replaces one temporal property without resolving TZID through the host OS.

Parameters

component OfficeIMO.Email.ContentLineComponent required
propertyName string required
value OfficeIMO.Email.IcsTemporalValue required
public static ContentLineProperty SetVCardText(ContentLineComponent card, string propertyName, string value) #

Creates or replaces one escaped text property.

Parameters

card OfficeIMO.Email.ContentLineComponent required
propertyName string required
value string required