public static void OnPaintSubItem(SubItemPaintEventArgs paintEventArgs, HashStringCache data) { Assert.IsNotNull(paintEventArgs); Assert.IsNotNull(data); bool abbreviate = IsAbbreviateEnabled(paintEventArgs.Column); paintEventArgs.PaintText(data.GetValue(abbreviate ? HashColumn.DefaultAbbrevLength : 40)); }
public static Size OnMeasureSubItem(SubItemMeasureEventArgs measureEventArgs, HashStringCache data) { Assert.IsNotNull(measureEventArgs); Assert.IsNotNull(data); bool abbreviate = IsAbbreviateEnabled(measureEventArgs.Column); return(measureEventArgs.MeasureText( data.GetValue(abbreviate ? HashColumn.DefaultAbbrevLength : 40), HashColumn.Font)); }
public static void OnPaintSubItem(SubItemPaintEventArgs paintEventArgs, HashStringCache data) { Assert.IsNotNull(paintEventArgs); Assert.IsNotNull(data); bool abbreviate = IsAbbreviateEnabled(paintEventArgs.Column); paintEventArgs.PaintText(data.GetValue(abbreviate ? HashColumn.DefaultAbbrevLength : 40)); }
public static Size OnMeasureSubItem(SubItemMeasureEventArgs measureEventArgs, HashStringCache data) { Assert.IsNotNull(measureEventArgs); Assert.IsNotNull(data); bool abbreviate = IsAbbreviateEnabled(measureEventArgs.Column); return measureEventArgs.MeasureText( data.GetValue(abbreviate ? HashColumn.DefaultAbbrevLength : 40), HashColumn.Font); }