Table of Contents

Interface INodeLabelSyntax<T>

Namespace
NMF.Glsp.Language
Assembly
NMF.Glsp.dll

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 double

The x coordinate of the new label position

y double

The 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 string

The 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 string

The CSS class to use

Returns

INodeLabelSyntax<T>

A label syntax element for chaining purposes