The GetHorizontalAlignment method is called when the horizontal alignment setting for the cell is CellHorizontalAlignment.General and the GetVerticalAlignment method is called when the vertical alignment setting for the cell is CellVerticalAlignment.General. The class implementing this interface could return a different alignment based on the value type in these methods.