MonoMobile.Views.BaseDialogViewSource.TitleForHeader C# (CSharp) Method

TitleForHeader() public method

public TitleForHeader ( UITableView tableView, int sectionIndex ) : string
tableView UITableView
sectionIndex int
return string
		public override string TitleForHeader(UITableView tableView, int sectionIndex)
		{
			if (Sections.Count > sectionIndex && Sections.ContainsKey(sectionIndex))
			{
				var section = Sections[sectionIndex];
				if (section != null)
				{
					return section.HeaderText;
				}
			}

			return string.Empty;
		}