C# Class ScrewTurn.Wiki.NavigationPaths

Manages navigation paths.
Afficher le fichier Open project: mono/ScrewTurnWiki Class Usage Examples

Méthodes publiques

Méthode Description
AddNavigationPath ( NamespaceInfo nspace, string name, List pages, IPagesStorageProviderV30 provider ) : bool

Adds a new Navigation Path.

Exists ( string name ) : bool

Finds a Navigation Path's Name.

Find ( string fullName ) : NavigationPath

Finds and returns a Path.

GetAllNavigationPaths ( ) : List

Gets the list of the Navigation Paths.

GetNavigationPaths ( NamespaceInfo nspace ) : List

Gets the list of the Navigation Paths in a namespace.

ModifyNavigationPath ( string fullName, List pages ) : bool

Modifies a Navigation Path.

PathsPerPage ( System.PageInfo page ) : string[]

Finds all the Navigation Paths that include a Page.

RemoveNavigationPath ( string fullName ) : bool

Removes a Navigation Path.

Method Details

AddNavigationPath() public static méthode

Adds a new Navigation Path.
public static AddNavigationPath ( NamespaceInfo nspace, string name, List pages, IPagesStorageProviderV30 provider ) : bool
nspace NamespaceInfo The target namespace (null for the root).
name string The Name.
pages List The Pages.
provider IPagesStorageProviderV30 The Provider to use for the new Navigation Path, or null for the default provider.
Résultat bool

Exists() public static méthode

Finds a Navigation Path's Name.
public static Exists ( string name ) : bool
name string The Name.
Résultat bool

Find() public static méthode

Finds and returns a Path.
public static Find ( string fullName ) : NavigationPath
fullName string The full name.
Résultat NavigationPath

GetAllNavigationPaths() public static méthode

Gets the list of the Navigation Paths.
public static GetAllNavigationPaths ( ) : List
Résultat List

GetNavigationPaths() public static méthode

Gets the list of the Navigation Paths in a namespace.
public static GetNavigationPaths ( NamespaceInfo nspace ) : List
nspace NamespaceInfo The namespace.
Résultat List

ModifyNavigationPath() public static méthode

Modifies a Navigation Path.
public static ModifyNavigationPath ( string fullName, List pages ) : bool
fullName string The full name of the path to modify.
pages List The list of Pages.
Résultat bool

PathsPerPage() public static méthode

Finds all the Navigation Paths that include a Page.
public static PathsPerPage ( System.PageInfo page ) : string[]
page System.PageInfo The Page.
Résultat string[]

RemoveNavigationPath() public static méthode

Removes a Navigation Path.
public static RemoveNavigationPath ( string fullName ) : bool
fullName string The full name of the path to remove.
Résultat bool