Click or drag to resize

Preset Class

The general preset class.

This class will trigger PresetChange and PresetNameChange events.

Inheritance Hierarchy
SystemObject
  Crestron.SimplSharpPro.MediaPreset

Namespace: Crestron.SimplSharpPro.Media
Assembly: Crestron.SimplSharpPro.Media (in Crestron.SimplSharpPro.Media.dll) Version: 2.21.121
Syntax
C#
public sealed class Preset

The Preset type exposes the following members.

Properties
 NameDescription
Public propertyName The name (up to 250 characters) of the preset which will be assigned using the Press. When this property is empty a default name is assigned to it.
Public propertyNameFeedback Reports the name (up to 250 characters) assigned to Name string input.

The PresetNameChange event will trigger with BaseTransportControls and present number.

Public propertyNumber Reports current preset number.
Public propertyPress Selects the station preset. If pressed for less than the time specified in PresetPressAndHoldTime then the preset is selected. When pressed for the amount of time (or longer) set in PresetPressAndHoldTime then the preset is assigned the string set in Name or deleted if already assigned. If Name is empty a default name is assigned.
Public propertyPressFeedback The output tracks the state of the Press input.

The PresetChange event will trigger with BaseTransportControls and present number.

Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also