Class OptionDocs
Represents documentation attached to an option.
public sealed class OptionDocs
- Inheritance
-
OptionDocs
- Inherited Members
Constructors
OptionDocs(string, Block, IReadOnlyDictionary<OptionForm, IReadOnlyList<OptionParameter>>)
Creates documentation for an option.
public OptionDocs(string category, Block description, IReadOnlyDictionary<OptionForm, IReadOnlyList<OptionParameter>> parameters)
Parameters
categorystringThe option's category.
descriptionBlockA description of what the option does.
parametersIReadOnlyDictionary<OptionForm, IReadOnlyList<OptionParameter>>A list of parameters for each option form.
OptionDocs(string, Block, IReadOnlyList<OptionForm>, IReadOnlyList<OptionParameter>)
Creates documentation for an option.
public OptionDocs(string category, Block description, IReadOnlyList<OptionForm> forms, IReadOnlyList<OptionParameter> parameters)
Parameters
categorystringThe option's category.
descriptionBlockA description of what the option does.
formsIReadOnlyList<OptionForm>A list of forms for the option.
parametersIReadOnlyList<OptionParameter>A common list of parameters for all option forms.
Fields
DefaultCategory
Gets the default option category.
public const string DefaultCategory = "Overall options"
Field Value
Properties
Category
Gets the category of options this option belongs to.
public string Category { get; }
Property Value
- string
A category.
Description
Gets a description of what the option does.
public Block Description { get; }
Property Value
- Block
A description.
Parameters
Gets a dictionary that maps each option form to a list of parameter docs for that form.
public IReadOnlyDictionary<OptionForm, IReadOnlyList<OptionParameter>> Parameters { get; }
Property Value
- IReadOnlyDictionary<OptionForm, IReadOnlyList<OptionParameter>>
A list of parameters.
Methods
GetParameters(OptionForm)
Gets the parameter documentation for a particular option form.
public IReadOnlyList<OptionParameter> GetParameters(OptionForm form)
Parameters
formOptionFormThe form to get documentation for.
Returns
- IReadOnlyList<OptionParameter>
A list of parameter docs, one for each parameter.