Table of Contents

Class DialogRowCollection<T>

Namespace
SampSharp.Entities.SAMP
Assembly
SampSharp.OpenMp.Entities.dll

Represents a collection of dialog rows.

public class DialogRowCollection<T> : IEnumerable<T>, IEnumerable where T : IDialogRow

Type Parameters

T

The type of the dialog rows.

Inheritance
DialogRowCollection<T>
Implements
Derived
Inherited Members

Constructors

DialogRowCollection()

public DialogRowCollection()

Properties

Count

Gets the number of rows in the list.

public int Count { get; }

Property Value

int

RawText

public string RawText { get; }

Property Value

string

Methods

Add(T)

Adds the specified row to the list.

public virtual void Add(T row)

Parameters

row T

The row to add.

Exceptions

ArgumentNullException

Thrown if row is null.

Clear()

Removes all rows from the list.

public virtual void Clear()

Get(int)

Gets the row at the specified index.

public virtual T Get(int index)

Parameters

index int

The index.

Returns

T

The row at the specified index.

Exceptions

ArgumentOutOfRangeException

Thrown if the index is out of the range of the list.

GetEnumerator()

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

Remove(T)

Removes the first occurrence of the specified row to the list.

public virtual bool Remove(T row)

Parameters

row T

Returns

bool