Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TitleRow"/> class with
 /// an <see cref="object"/> representing the content.
 /// </summary>
 public TitleRow(object title)
 {
     TitleCell = new TitleCell
     {
         ParentRow = this,
         Content   = title?.ToString() ?? MultilineText.Empty
     };
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TitleRow"/> class with
 /// a <see cref="MultilineText"/> content.
 /// </summary>
 public TitleRow(MultilineText title)
 {
     TitleCell = new TitleCell
     {
         ParentRow = this,
         Content   = title ?? MultilineText.Empty
     };
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TitleRow"/> class with
 /// empty content.
 /// </summary>
 public TitleRow()
 {
     TitleCell = new TitleCell
     {
         ParentRow = this,
         Content   = MultilineText.Empty
     };
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TitleRow"/> class with
 /// the text content.
 /// </summary>
 public TitleRow(string title)
 {
     TitleCell = new TitleCell
     {
         ParentRow = this,
         Content   = title == null
             ? MultilineText.Empty
             : new MultilineText(title)
     };
 }