ContentLineComponent
OfficeIMO.Email
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.
Returned or exposed by 9
- Method ContentLineComponent.AddComponent
- Method ContentLineComponent.GetComponents
- Property ContentLineComponent.Components
- Method IcsDocument.AddCalendar
- Method IcsDocument.GetComponents
- Property IcsDocument.Calendars
- Method VCardDocument.AddCard
- Method VCardDocument.AddGroup
- Property VCardDocument.Cards
Accepted by parameters 16
- Extension method ContentLineComponent.AddRecurrenceRule
- Extension method ContentLineComponent.AddVCardText
- Extension method ContentLineComponent.GetRecurrenceRules
- Extension method ContentLineComponent.GetTemporalValue
- Extension method ContentLineComponent.GetVCardText
- Extension method ContentLineComponent.SetTemporalValue
- Extension method ContentLineComponent.SetVCardText
- Method IcsComponentExtensions.AddRecurrenceRule
- Method IcsComponentExtensions.GetRecurrenceRules
- Method IcsComponentExtensions.GetTemporalValue
- Method IcsComponentExtensions.SetTemporalValue
- Method VCardComponentExtensions.AddVCardText
- Method VCardComponentExtensions.GetVCardText
- Method VCardComponentExtensions.SetVCardText
- Method VCardDocument.GetVersion
- Method VCardDocument.SetVersion
Constructors
public ContentLineComponent(string name) #Creates a component such as VCALENDAR, VEVENT, VALARM, or VCARD.
Parameters
- name string
Methods
public ContentLineComponent AddComponent(string name) #Adds a nested component and returns it.
Parameters
- name string
Returns
ContentLineComponentpublic ContentLineProperty AddProperty(string name, string value = "") #Adds a property and returns it for further configuration.
Parameters
- name string
- value string = ""
Returns
ContentLinePropertypublic IEnumerable<ContentLineComponent> GetComponents(string name, bool recursive = false) #Enumerates matching nested components in document order.
Parameters
- name string
- recursive bool = false
Returns
IEnumerable<ContentLineComponent>public ContentLineProperty? GetFirstProperty(string name) #Returns the first direct property matching name.
Parameters
- name string
Returns
ContentLineProperty?public IEnumerable<ContentLineProperty> GetProperties(string name) #Returns all direct properties matching name.
Parameters
- name string
Returns
IEnumerable<ContentLineProperty>public ContentLineProperty SetProperty(string name, string value) #Replaces all matching direct properties with one value.
Parameters
- name string
- value string
Returns
ContentLinePropertyInherited Methods
Properties
Extension Methods
public static ContentLineProperty AddRecurrenceRule(ContentLineComponent component, IcsRecurrenceRule rule) #Adds an RRULE property.
Parameters
- component OfficeIMO.Email.ContentLineComponent
- rule OfficeIMO.Email.IcsRecurrenceRule
Returns
ContentLinePropertypublic static ContentLineProperty AddVCardText(ContentLineComponent card, string propertyName, string value) #Adds a repeated escaped text property.
Parameters
- card OfficeIMO.Email.ContentLineComponent
- propertyName string
- value string
Returns
ContentLinePropertypublic static IEnumerable<IcsRecurrenceRule> GetRecurrenceRules(ContentLineComponent component) #Parses every direct RRULE property.
Parameters
- component OfficeIMO.Email.ContentLineComponent
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
- propertyName string
Returns
IcsTemporalValue?public static string? GetVCardText(ContentLineComponent card, string propertyName) #Returns the first property value with vCard text escaping decoded.
Parameters
- card OfficeIMO.Email.ContentLineComponent
- propertyName string
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
- propertyName string
- value OfficeIMO.Email.IcsTemporalValue
Returns
ContentLinePropertypublic static ContentLineProperty SetVCardText(ContentLineComponent card, string propertyName, string value) #Creates or replaces one escaped text property.
Parameters
- card OfficeIMO.Email.ContentLineComponent
- propertyName string
- value string
Returns
ContentLineProperty