Esempio n. 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
     };
 }
Esempio n. 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
     };
 }
Esempio n. 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
     };
 }
Esempio n. 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)
     };
 }