System.Windows.Forms.TableViewHelper.getState C# (CSharp) Method

getState() private method

private getState ( int row ) : DrawItemState
row int
return DrawItemState
		private DrawItemState getState(int row)
		{
			DrawItemState state = DrawItemState.None;
			if(Host is ListBox)
			{
				var lbox = (ListBox)Host;
				if (lbox.SelectedIndices.Contains (row))
					state |= DrawItemState.Selected;
					
				if (lbox.has_focus && lbox.FocusedItem == row)
					state |= DrawItemState.Focus;
			}
			return state;
		}
	}