C# Class Headless.XPathNavigableExtensions

The XPathNavigableExtensions class provides extension methods for the IXPathNavigable interface.
显示文件 Open project: roryprimrose/Headless

Public Methods

Method Description
GetNavigator ( this navigable ) : XPathNavigator

Gets the navigator.

HasAttribute ( this navigable, string name ) : bool

Determines whether the specified navigable has the specified attribute.

IsChecked ( this navigable ) : bool

Determines whether the specified navigable is checked.

IsSelected ( this navigable ) : bool

Determines whether the specified navigable is selected.

SetChecked ( this navigable, bool value ) : void

Sets the checked state of the specified navigable instance.

SetSelected ( this navigable, bool value ) : void

Sets the selected.

Private Methods

Method Description
SetAttribute ( this navigable, string prefix, string localName, string namespaceUri, string value ) : void

Method Details

GetNavigator() public static method

Gets the navigator.
/// The parameter is null. /// /// The navigator could not be created. ///
public static GetNavigator ( this navigable ) : XPathNavigator
navigable this /// The navigable. ///
return System.Xml.XPath.XPathNavigator

HasAttribute() public static method

Determines whether the specified navigable has the specified attribute.
public static HasAttribute ( this navigable, string name ) : bool
navigable this /// The navigable. ///
name string /// The name. ///
return bool

IsChecked() public static method

Determines whether the specified navigable is checked.
public static IsChecked ( this navigable ) : bool
navigable this /// The navigable. ///
return bool

IsSelected() public static method

Determines whether the specified navigable is selected.
public static IsSelected ( this navigable ) : bool
navigable this /// The navigable. ///
return bool

SetChecked() public static method

Sets the checked state of the specified navigable instance.
public static SetChecked ( this navigable, bool value ) : void
navigable this /// The navigable. ///
value bool /// if set to true [value]. ///
return void

SetSelected() public static method

Sets the selected.
public static SetSelected ( this navigable, bool value ) : void
navigable this /// The navigable. ///
value bool /// if set to true [value]. ///
return void