/// <summary> /// Initializes a new instance of the <see cref="SortText"/> class. /// </summary> /// <param name="sortTextStyle">The sort text style.</param> public SortText(SortTextStyle sortTextStyle) { Descending = false; SortTextStyle = sortTextStyle; if (SortTextStyle == SortTextStyle.SubString) { ExtraData1 = 1; ExtraData2 = 1; } }
/// <summary> /// Initializes a new instance of the <see cref="SortText"/> class. /// </summary> /// <param name="sortTextStyle">The sort text style.</param> /// <param name="descending">if set to <c>true</c> the sort order will be descending.</param> public SortText(SortTextStyle sortTextStyle, bool descending) { Descending = descending; SortTextStyle = sortTextStyle; if (SortTextStyle == SortTextStyle.SubString) { ExtraData1 = 1; ExtraData2 = 1; } }