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
TThe 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
fromValueTThe from value
toValueTThe to value
timestampFormatFromToUseGoogleSheetsThe 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
inputstringThe text to parse
ToString(LangsGoogleSheets)
Converts this range to a string representation
public string ToString(LangsGoogleSheets lang)
Parameters
langLangsGoogleSheetsThe 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
langLangsGoogleSheetsThe language to use for formatting
Returns
- string
DateTime string representation