나는 richTextBox1과 richTextBox2를 한 단어 씩 비교하고있다.두 개의 RichTextBox를 비교하고 있습니까?
// collect words from ritchtextbox1
String[] test = richtextbox1.text.Split(" ", StringSplitOptions.RemoveEmptyEntries);
// find each word test to richtextbox2
// if it is found then change back color of particular word to green of the
// else change back color of particular word to red in richtextbox1
test = richtextbox2.text.Split(" ", StringSplitOptions.RemoveEmptyEntries);
// find each word in test to richtextbox1
// if it is found then change back color of particular word to green of the
// else change back color of particular word to red in richtextbox2
어느 누구도 코드 구문에 약간의 도움이 될 수 있습니다. mateusz 코드의
메신저 복용 참조
String[] test = richtextbox1.text.Split(" ", StringSplitOptions.RemoveEmptyEntries);
String[] test2 = richtextbox2.text.Split(" ", StringSplitOptions.RemoveEmptyEntries);
bool wordNotFound=false;
for (int i=0;i<test.lenght;i++)
for (int j=0;j<test2.length;j++){
if (test[i].equals(test2[j])){
wordNotFound=true
break;
}
else wordNotFound=true;
}
은 //// 여기에 나는이 두 개의 텍스트 상자가 메신저
if (wordNotFound) richTextBox1.BackColor = Color.Red;
else richTextBox1.BackColor = Color.Green;
메신저 비교하지 다시 특정 단어 색상하지 전체 ritchtextbox을 변경해야 양쪽에 존재하는 각 단어의 유효성을 검사합니다. 사전을 하나의 richtextbox1로 취하는 맞춤법 검사와 같습니다. richtextbox2에서 맞춤법 [valid word]를 확인하십시오. 단어가 전혀 분할 귀찮게 왜 같은 순서로 될 경우 그 반대의 경우도 마찬가지 ...
메신저가 양쪽에 존재하는 각 단어의 유효성을 검사합니다. 사전을 하나의 richtextbox1로 취하는 맞춤법 검사와 같습니다. richtextbox2에서 맞춤법 [valid word]를 확인하십시오. 그 반대의 경우 ... – Siva
[가능한 두 개의 richtextbox 텍스트를 C#을 사용하여 비교하는 방법] (http : // stackoverflow.co.kr/questions/6782195/how-to-compare-2-richtextbox-text-using-c-sharp) –
@ 0A0D 행마다 비교 Word에서 단어로 비교해야합니다 – Siva