Exemplo 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
     };
 }
Exemplo 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
     };
 }
Exemplo 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
     };
 }
Exemplo 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)
     };
 }