Table of Contents

Class CenterAction

Namespace
NMF.Glsp.Protocol.Layout
Assembly
NMF.Glsp.dll

Centers the viewport on the elements with the given identifiers. It changes the scroll setting of the viewport accordingly and resets the zoom to its default. This action can also be created on the client but it can also be sent by the server in order to perform such a viewport change remotely.

public class CenterAction : BaseAction
Inheritance
CenterAction
Inherited Members

Fields

CenterActionKind

The kind value used for this kind of action

public const string CenterActionKind = "center"

Field Value

string

Properties

Animate

Indicate if the modification of the viewport should be realized with or without support of animations.

public bool Animate { get; set; }

Property Value

bool

ElementIds

The identifier of the elements on which the viewport should be centered.

public string[] ElementIds { get; set; }

Property Value

string[]

Kind

Unique identifier specifying the kind of action to process.

public override string Kind { get; }

Property Value

string

RetainZoom

Indicates whether the zoom level should be kept.

public bool RetainZoom { get; set; }

Property Value

bool