OpenTAP 9.34
API Reference
OpenTap.TimeSpanFormatAttribute Class Reference

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

Public Member Functions

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

Properties

bool AllowNone [get]
 Gets or sets a value indicating whether 'None' is allowed as a textual representation of TimeSpan.Zero.
 
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.
 
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.34 API built Wed Jul 1 2026 09:21:15