/// <summary> /// Create and initialize a StructuredTextItem object from the given input string using the /// active item prefix and suffix of the composer /// </summary> /// <typeparam name="T"></typeparam> /// <param name="composer"></param> /// <param name="text"></param> /// <returns></returns> public static StructuredTextItem ToTextItem <T>(this IStructuredComposer composer, T text) { return(new StructuredTextItem(composer.ActiveItemPrefix, text.ToString(), composer.ActiveItemSuffix)); }
/// <summary> /// Create and initialize a StructuredTextItem object from the given input string using the /// active item prefix and suffix of the composer /// </summary> /// <param name="composer"></param> /// <param name="text"></param> /// <returns></returns> public static StructuredTextItem ToTextItem(this IStructuredComposer composer, string text) { return(new StructuredTextItem(composer.ActiveItemPrefix, text, composer.ActiveItemSuffix)); }