mirror of
https://github.com/ppy/osu
synced 2025-03-11 05:49:12 +00:00
Add xmldoc
This commit is contained in:
parent
db12fafc2c
commit
ff3928465c
@ -87,8 +87,17 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
return found;
|
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)
|
public Column GetColumn(int index)
|
||||||
{
|
{
|
||||||
|
if (index < 0 || index > TotalColumns - 1)
|
||||||
|
throw new ArgumentOutOfRangeException(nameof(index));
|
||||||
|
|
||||||
foreach (var stage in stages)
|
foreach (var stage in stages)
|
||||||
{
|
{
|
||||||
if (index >= stage.Columns.Count)
|
if (index >= stage.Columns.Count)
|
||||||
|
Loading…
Reference in New Issue
Block a user