FragmentState.Equals Method

Definition

Determines if the current instance of FragmentState describes the same TextFragment state as another TextFragment instance, or an Object that can be cast to TextFragment.

Overloads

Equals(Object)

Determines if a given object is an instance FragmentState equal to the current instance of FragmentState.

Equals(FragmentState)

Determines if a given instance of FragmentState is equal to the current instance of FragmentState.

Equals(Object)

Source:
TTSEngineTypes.cs
Source:
TTSEngineTypes.cs
Source:
TTSEngineTypes.cs

Determines if a given object is an instance FragmentState equal to the current instance of FragmentState.

C#
public override bool Equals(object obj);

Parameters

obj
Object

An object that can be cast to an instance of TextFragment.

Returns

Returns true, if the current instance of TextFragment and that obtained from the Object provided by the obj argument describe the same TextFragment state. Returns false if the current TextFragment and the obj argument do not support the same TextFragment state.

Remarks

The method returns false if the Object provided by the obj argument cannot be cast to TextFragment.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Equals(FragmentState)

Source:
TTSEngineTypes.cs
Source:
TTSEngineTypes.cs
Source:
TTSEngineTypes.cs

Determines if a given instance of FragmentState is equal to the current instance of FragmentState.

C#
public bool Equals(System.Speech.Synthesis.TtsEngine.FragmentState other);

Parameters

other
FragmentState

An instance of TextFragment.

Returns

Returns true, if both the current instance of TextFragment and that supplied through the other argument describe the same TextFragment state. Returns false if the current TextFragment and the other argument do not support the same TextFragment state.

Implements

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)