API Reference
ContentLineComponent
Ordered content-line component with properties and nested components.
Inheritance
- Object
- ContentLineComponent
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 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
- 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 System.String
Methods
public ContentLineComponent AddComponent(String name) #ContentLineComponentAdds a nested component and returns it.
Parameters
- name System.String
public ContentLineProperty AddProperty(String name, String value = "") #ContentLinePropertyAdds a property and returns it for further configuration.
Parameters
- name System.String
- value System.String = ""
public IEnumerable<ContentLineComponent> GetComponents(String name, Boolean recursive = false) #IEnumerable<ContentLineComponent>Enumerates matching nested components in document order.
Parameters
- name System.String
- recursive System.Boolean = false
public ContentLineProperty GetFirstProperty(String name) #ContentLinePropertyReturns the first direct property matching name.
Parameters
- name System.String
public IEnumerable<ContentLineProperty> GetProperties(String name) #IEnumerable<ContentLineProperty>Returns all direct properties matching name.
Parameters
- name System.String
public ContentLineProperty SetProperty(String name, String value) #ContentLinePropertyReplaces all matching direct properties with one value.
Parameters
- name System.String
- value System.String
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
Extension Methods
public static ContentLineProperty AddRecurrenceRule(ContentLineComponent component, IcsRecurrenceRule rule) #ContentLinePropertyAdds an RRULE property.
Parameters
- component OfficeIMO.Email.ContentLineComponent
- rule OfficeIMO.Email.IcsRecurrenceRule
public static ContentLineProperty AddVCardText(ContentLineComponent card, String propertyName, String value) #ContentLinePropertyAdds a repeated escaped text property.
Parameters
- card OfficeIMO.Email.ContentLineComponent
- propertyName System.String
- value System.String
public static IEnumerable<IcsRecurrenceRule> GetRecurrenceRules(ContentLineComponent component) #IEnumerable<IcsRecurrenceRule>Parses every direct RRULE property.
Parameters
- component OfficeIMO.Email.ContentLineComponent
public static Nullable<IcsTemporalValue> GetTemporalValue(ContentLineComponent component, String propertyName) #Nullable<IcsTemporalValue>Gets the first temporal property with the supplied name.
Parameters
- component OfficeIMO.Email.ContentLineComponent
- propertyName System.String
public static String GetVCardText(ContentLineComponent card, String propertyName) #StringReturns the first property value with vCard text escaping decoded.
Parameters
- card OfficeIMO.Email.ContentLineComponent
- propertyName System.String
public static ContentLineProperty SetTemporalValue(ContentLineComponent component, String propertyName, IcsTemporalValue value) #ContentLinePropertyCreates or replaces one temporal property without resolving TZID through the host OS.
Parameters
- component OfficeIMO.Email.ContentLineComponent
- propertyName System.String
- value OfficeIMO.Email.IcsTemporalValue
public static ContentLineProperty SetVCardText(ContentLineComponent card, String propertyName, String value) #ContentLinePropertyCreates or replaces one escaped text property.
Parameters
- card OfficeIMO.Email.ContentLineComponent
- propertyName System.String
- value System.String