Class ScreenshotRefreshIntervalExtensions
A class for extension methods for the ScreenshotRefreshInterval enumeration.
Inheritance
System.Object
ScreenshotRefreshIntervalExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.MediaCapture.Screenshot
Assembly: Phoenix.Abstractions.MediaCapture.dll
Syntax
public static class ScreenshotRefreshIntervalExtensions
Methods
View SourceConvertDoubleToScreenshotRefreshInterval(Double)
Converts a double in milliseconds to a ScreenshotRefreshInterval.
Declaration
public static ScreenshotRefreshInterval ConvertDoubleToScreenshotRefreshInterval(double interval)
Parameters
Type | Name | Description |
---|---|---|
System.Double | interval | The interval in milliseconds |
Returns
Type | Description |
---|---|
ScreenshotRefreshInterval | The converted ScreenshotRefreshInterval. |
RoundupToNearestScreenshotRefreshInterval(TimeSpan)
Rounds a timespan up to the nearest ScreenshotRefreshInterval. Rounding caps out at ten seconds.
Declaration
public static TimeSpan RoundupToNearestScreenshotRefreshInterval(this TimeSpan timeSpan)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeSpan | The timespan to round. |
Returns
Type | Description |
---|---|
System.TimeSpan | A new timespan that equals a ScreenshotRefreshInterval. |
ToDisplayString(ScreenshotRefreshInterval)
Converts a ScreenshotRefreshInterval to a string for display.
Declaration
public static string ToDisplayString(this ScreenshotRefreshInterval interval)
Parameters
Type | Name | Description |
---|---|---|
ScreenshotRefreshInterval | interval | The interval to convert. |
Returns
Type | Description |
---|---|
System.String | The string. |
ToTimeSpan(ScreenshotRefreshInterval)
Converts a ScreenshotRefreshInterval to a TimeSpan.
Declaration
public static TimeSpan ToTimeSpan(this ScreenshotRefreshInterval interval)
Parameters
Type | Name | Description |
---|---|---|
ScreenshotRefreshInterval | interval | The interval to convert. |
Returns
Type | Description |
---|---|
System.TimeSpan | The timespan |