예제 #1
0
 /// <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)));
 }
예제 #2
0
 /// <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)));
 }
예제 #3
0
 /// <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)));
 }