/// <summary> /// Apply a label element to string content. /// </summary> /// <param name="contents">Content to tag.</param> /// <param name="attributes">Attributes to apply.</param> /// <returns></returns> public string ApplyLabel(string contents, object attributes) { return(ApplyLabel(contents, ElementAttributesDictionary.Create(attributes))); }
/// <summary> /// Output a string version of this field /// </summary> /// <param name="attributes">Additional attributes for widget.</param> /// <returns></returns> public string ToString(object attributes) { return(this.AsWidget(null, ElementAttributesDictionary.Create(attributes))); }
/// <summary> /// Apply a label element to string content. /// </summary> /// <param name="attributes">Attributes to apply.</param> /// <returns></returns> public string ApplyLabel(object attributes) { return(ApplyLabel(this.Label, ElementAttributesDictionary.Create(attributes))); }