示例#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)));
 }