Table of Contents

Class LabelDescriptor<T>

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

Denotes a descriptor for elements shown as labels

public abstract class LabelDescriptor<T> : ElementDescriptor<T>

Type Parameters

T
Inheritance
LabelDescriptor<T>
Inherited Members

Methods

CalculateTypeHints()

Calculates type hints for this rule

protected override IEnumerable<TypeHint> CalculateTypeHints()

Returns

IEnumerable<TypeHint>

A collection of type hints

Label(Expression<Func<T, string>>, bool)

Specifies that a GLabel element should be created for the current element

protected ILabelSyntax<T> Label(Expression<Func<T, string>> labelSelector, bool canEdit = true)

Parameters

labelSelector Expression<Func<T, string>>

An expression calculating the text of the label

canEdit bool

True, if the label can be added, otherwise False

Returns

ILabelSyntax<T>

Remarks

This method is intended to be used inside of DefineLayout()