OpenTAP 9.25
API Reference
Public Member Functions | Properties | List of all members
OpenTap.TimeSpanFormatAttribute Class Reference

Attribute for giving directives to the TimeSpanControl provider, that shows the control provider in the GUI. More...

Inherits Attribute.

Public Member Functions

 TimeSpanFormatAttribute (bool allowNone=false, bool allowNegative=false, FormatVerbosities verbosity=FormatVerbosities.Normal)
 Time span format attribute. More...
 

Properties

bool AllowNone [get]
 Gets or sets a value indicating whether 'None' is allowed as a textual representation of TimeSpan.Zero. More...
 
bool AllowNegative [get]
 Gets or sets a value indicating whether we a negative timespan is allowed. If set to false, any negative input will automatically be turned into a positive TimeSpan. More...
 
FormatVerbosities Verbosity [get]
 Sets the preferred verbosity for formatting the TimeSpan value.
 

Detailed Description

Attribute for giving directives to the TimeSpanControl provider, that shows the control provider in the GUI.

Constructor & Destructor Documentation

◆ TimeSpanFormatAttribute()

OpenTap.TimeSpanFormatAttribute.TimeSpanFormatAttribute ( bool  allowNone = false,
bool  allowNegative = false,
FormatVerbosities  verbosity = FormatVerbosities.Normal 
)
inline

Time span format attribute.

Parameters
allowNone
allowNegative
verbosity

Property Documentation

◆ AllowNegative

bool OpenTap.TimeSpanFormatAttribute.AllowNegative
get

Gets or sets a value indicating whether we a negative timespan is allowed. If set to false, any negative input will automatically be turned into a positive TimeSpan.

true if negative values are allowed, false if not.

◆ AllowNone

bool OpenTap.TimeSpanFormatAttribute.AllowNone
get

Gets or sets a value indicating whether 'None' is allowed as a textual representation of TimeSpan.Zero.

true if 'None' is allowed, false if not.

OpenTAP 9.25 API built Tue Aug 6 2024 07:49:24