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