FragmentState.Equality(FragmentState, FragmentState) 運算子

定義

判斷兩個 FragmentState 執行個體是否會描述相同的 TextFragment 狀態。

public:
 static bool operator ==(System::Speech::Synthesis::TtsEngine::FragmentState state1, System::Speech::Synthesis::TtsEngine::FragmentState state2);
public static bool operator == (System.Speech.Synthesis.TtsEngine.FragmentState state1, System.Speech.Synthesis.TtsEngine.FragmentState state2);
static member ( = ) : System.Speech.Synthesis.TtsEngine.FragmentState * System.Speech.Synthesis.TtsEngine.FragmentState -> bool
Public Shared Operator == (state1 As FragmentState, state2 As FragmentState) As Boolean

參數

state1
FragmentState

TextFragment 的執行個體,其描述的狀態會和 state2 引數所提供的 TextFragment 執行個體做比較。

state2
FragmentState

TextFragment 的執行個體,其描述的狀態會和 state1 引數所提供的 TextFragment 執行個體做比較。

傳回

Boolean

如果 FragmentState 的兩個執行個體 state1state2 描述相同的 TextFragment 狀態,則傳回 true;否則傳回 false

備註

這個運算子 FragmentState.Equals(FragmentState) 的對等方法是 。

適用於