Table of Contents

Method Add

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Add(NameValue<Control>)

Adds new page.

public virtual int Add(NameValue<Control> page)

Parameters

page NameValue<Control>

Page title and control.

Returns

int

Created page index.

Add(NameValue<Func<Control>>)

Adds new page.

public virtual int Add(NameValue<Func<Control>> page)

Parameters

page NameValue<Func<Control>>

Page title and control creation function.

Returns

int

Created page index.

Add(Control)

Adds new page.

public virtual int Add(Control control)

Parameters

control Control

Control.

Returns

int

Created page index.

Add(string, Func<Control>)

Adds new page.

public virtual int Add(string title, Func<Control> fnCreate)

Parameters

title string

Page title.

fnCreate Func<Control>

Function which creates the control.

Returns

int

Created page index.

Add(string, Control?)

Adds new page.

public virtual int Add(string title, Control? control = null)

Parameters

title string

Page title.

control Control

Control.

Returns

int

Created page index.