Table of Contents

Class MudPageContentSection

Namespace
MudBlazor
Assembly
MudBlazor.dll

A section (nav link) inside the MudPageContentNavigation

public class MudPageContentSection
Inheritance
MudPageContentSection
Inherited Members
Extension Methods

Constructors

MudPageContentSection(string, string)

create a new instance with a title and id and level set to zero

public MudPageContentSection(string title, string id)

Parameters

title string

name of the section will be displayed in the navigation

id string

id of the section. It will be appending to the current url, if the section becomes active

MudPageContentSection(string, string, int, MudPageContentSection?)

create a new instance with a title and id and level

public MudPageContentSection(string title, string id, int level, MudPageContentSection? parent)

Parameters

title string

name of the section will be displayed in the navigation

id string

id of the section. It will be appending to the current url, if the section becomes active

level int

The level within the hierachy

parent MudPageContentSection

The parent of the section. null if there is no parent or no hierachy

Properties

Active

Indicating if the section is currently in the middle of the viewport

public bool Active { get; }

Property Value

bool

Id

Id of the section. It will be appending to the current url, if the section becomes active

public string Id { get; set; }

Property Value

string

Level

public int Level { get; set; }

Property Value

int

LevelSortingValue

public int LevelSortingValue { get; }

Property Value

int

Parent

public MudPageContentSection? Parent { get; }

Property Value

MudPageContentSection

Title

The Title of the section. This will be displayed in the navigation

public string Title { get; set; }

Property Value

string

Methods

Activate()

protected void Activate()

Deactive()

protected void Deactive()