Del via


InstalledVoice.Enabled Property

Definition

Gets or sets whether a voice can be used to generate speech.

public:
 property bool Enabled { bool get(); void set(bool value); };
public bool Enabled { get; set; }
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

Property Value

Returns a bool that represents the enabled state of the voice.

Remarks

The value of the Enabled property is true by default. When an application calls GetInstalledVoices, the method verifies that each of the voices it finds in the registry meets certain minimum criteria. For any voice that fails verification, GetInstalledVoices sets its Enabled property to false. An application cannot select a voice whose Enabled property is false. Typically, applications will not set a voice's Enabled property.

Applies to

See also