Table of Contents

Class GridModeExtensions

Namespace
MoonBark.GridPlacement.Core.Types
Assembly
MoonBark.GridPlacement.Core.dll

Extension methods for working with GridMode values.

public static class GridModeExtensions
Inheritance
GridModeExtensions
Inherited Members

Methods

IsActiveMode(GridMode)

Returns whether the mode is active (not Off).

public static bool IsActiveMode(this GridMode mode)

Parameters

mode GridMode

The mode to evaluate.

Returns

bool

true if the mode is active; otherwise false.

IsToolMode(GridMode)

Returns whether the mode represents an active tool mode (e.g. place, move, remove).

public static bool IsToolMode(this GridMode mode)

Parameters

mode GridMode

The mode to evaluate.

Returns

bool

true if the mode is a tool mode; otherwise false.

ToDisplayString(GridMode)

Converts the mode to a display-friendly string.

public static string ToDisplayString(this GridMode mode)

Parameters

mode GridMode

The mode to convert.

Returns

string

A display string for the mode.

ToStringValue(GridMode)

Converts the mode to a lowercase string for UI compatibility.

public static string ToStringValue(this GridMode mode)

Parameters

mode GridMode

The mode to convert.

Returns

string

A lowercase string for the mode.