/// <summary>Gets all row values as strings using the string format defined at the rowlayout.</summary> /// <param name="layout">Table layout.</param> /// <returns>An array containing the display strings for all fields.</returns> public string[] GetDisplayStrings(RowLayout layout) { var strings = new string[Values.Length]; for (var i = 0; i < Values.Length; i++) { strings[i] = layout.GetDisplayString(i, Values[i]); } return(strings); }
/// <summary>Obtains a row value as string using the string format defined at the rowlayout.</summary> /// <param name="layout">The layout.</param> /// <param name="index">The field index.</param> /// <returns>The string to display.</returns> public string GetDisplayString(RowLayout layout, int index) { if (layout == null) { throw new ArgumentNullException(nameof(layout)); } var value = Values[index]; return(value == null ? string.Empty : layout.GetDisplayString(index, value)); }
/// <summary>Gets all row values as strings using the string format defined at the rowlayout.</summary> /// <param name="layout">Table layout.</param> /// <returns>An array containing the display strings for all fields.</returns> public string[] GetDisplayStrings(RowLayout layout) { if (layout == null) { throw new ArgumentNullException(nameof(layout)); } var strings = new string[Values.Length]; for (var i = 0; i < Values.Length; i++) { strings[i] = layout.GetDisplayString(i, Values[i]); } return(strings); }
/// <summary>Obtains a row value as string using the string format defined at the rowlayout.</summary> /// <param name="layout">The layout.</param> /// <param name="index">The field index.</param> /// <returns>The string to display.</returns> public string GetDisplayString(RowLayout layout, int index) { var value = Values[index]; return(value == null ? string.Empty : layout.GetDisplayString(index, value)); }