Interface INodeLabelSyntax<T>
Extends the syntax elements for configurations possible at a node label
public interface INodeLabelSyntax<T> : ILabelSyntax<T, INodeLabelSyntax<T>>
Type Parameters
T
The semantic type of elements for which a label is created
- Inherited Members
- Extension Methods
Methods
At(double, double)
Overrides the positioning of the label to a fixed position
INodeLabelSyntax<T> At(double x, double y)
Parameters
x
doubleThe x coordinate of the new label position
y
doubleThe y coordinate of the new label position
Returns
- INodeLabelSyntax<T>
A label syntax element for chaining purposes
WithConditionalCss(Expression<Func<T, string>>)
Overrides the styling of the label to a custom class
INodeLabelSyntax<T> WithConditionalCss(Expression<Func<T, string>> css)
Parameters
css
Expression<Func<T, string>>The CSS class to use
Returns
- INodeLabelSyntax<T>
A label syntax element for chaining purposes
WithConditionalCss(string, Expression<Func<T, bool>>)
Overrides the styling of the label to a fixed class
INodeLabelSyntax<T> WithConditionalCss(string css, Expression<Func<T, bool>> condition)
Parameters
css
stringThe CSS class to use
condition
Expression<Func<T, bool>>A condition when to apply the CSS class
Returns
- INodeLabelSyntax<T>
A label syntax element for chaining purposes
WithCss(string)
Overrides the styling of the label to a fixed class
INodeLabelSyntax<T> WithCss(string css)
Parameters
css
stringThe CSS class to use
Returns
- INodeLabelSyntax<T>
A label syntax element for chaining purposes