Add xmldoc

This commit is contained in:
smoogipoo 2020-04-28 18:55:58 +09:00
parent db12fafc2c
commit ff3928465c
1 changed files with 9 additions and 0 deletions

View File

@ -87,8 +87,17 @@ public Column GetColumnByPosition(Vector2 screenSpacePosition)
return found;
}
/// <summary>
/// Retrieves a <see cref="Column"/> by index.
/// </summary>
/// <param name="index">The index of the column.</param>
/// <returns>The <see cref="Column"/> corresponding to the given index.</returns>
/// <exception cref="ArgumentOutOfRangeException">If <paramref name="index"/> is less than 0 or greater than <see cref="TotalColumns"/>.</exception>
public Column GetColumn(int index)
{
if (index < 0 || index > TotalColumns - 1)
throw new ArgumentOutOfRangeException(nameof(index));
foreach (var stage in stages)
{
if (index >= stage.Columns.Count)