Table of Contents

Class FromToTGoogleSheets<T>

Namespace
SunamoGoogleSheets._public.SunamoData.Data
Assembly
SunamoGoogleSheets.dll

Represents a range (from-to) of values with Google Sheets formatting support

public class FromToTGoogleSheets<T> : FromToTSHGoogleSheets<T> where T : struct

Type Parameters

T

The type of values in the range (must be a struct)

Inheritance
FromToTGoogleSheets<T>
Inherited Members
Extension Methods

Constructors

FromToTGoogleSheets()

Initializes a new instance of the FromToTGoogleSheets class

public FromToTGoogleSheets()

FromToTGoogleSheets(T, T, FromToUseGoogleSheets)

Initializes a new instance with from and to values

public FromToTGoogleSheets(T fromValue, T toValue, FromToUseGoogleSheets timestampFormat = FromToUseGoogleSheets.DateTime)

Parameters

fromValue T

The from value

toValue T

The to value

timestampFormat FromToUseGoogleSheets

The format to use when converting timestamps

Methods

IsFilledWithData()

Checks if this range is filled with data

public bool IsFilledWithData()

Returns

bool

True if the range has data, false otherwise

Parse(string)

Parses a time range from text (e.g., "0-24" or "10:30-15:45")

public void Parse(string input)

Parameters

input string

The text to parse

ToString(LangsGoogleSheets)

Converts this range to a string representation

public string ToString(LangsGoogleSheets lang)

Parameters

lang LangsGoogleSheets

The language to use for formatting

Returns

string

String representation of this range

ToStringDateTime(LangsGoogleSheets)

Converts this range to a DateTime string representation

protected virtual string ToStringDateTime(LangsGoogleSheets lang)

Parameters

lang LangsGoogleSheets

The language to use for formatting

Returns

string

DateTime string representation