Table of Contents

Class FitToScreenAction

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

Triggers to fit all or a list of elements into the available drawing area. The resulting fit-to-screen command changes the zoom and scroll settings of the viewport so the model can be shown completely. This action can also be sent from the server to the client in order to perform such a viewport change programmatically.

public class FitToScreenAction : BaseAction
Inheritance
FitToScreenAction
Inherited Members

Fields

FitToScreenActionKind

The kind value used for this kind of action

public const string FitToScreenActionKind = "fit"

Field Value

string

Properties

Animate

Indicate if the action should be performed with animation support or not.

public bool Animate { get; set; }

Property Value

bool

ElementIds

The identifier of the elements to fit on screen.

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

MaxZoom

The max zoom level authorized.

public double? MaxZoom { get; set; }

Property Value

double?

Padding

The padding that should be visible on the viewport.

public double? Padding { get; set; }

Property Value

double?