Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 |
Tags
- C# Devexpress CheckListBoxControl 줄 바꿈
- C# 빌드이벤트
- C# Devexpress
- C# 0x8001010d
- Row Indicator
- C# linq pivot
- RichEditControl Bold
- Delphi
- C# 매크로
- delphi JSON
- C# DataTable linq
- drawgrid
- C# WndProc
- CustomDrawColumnHeader
- 델파이
- 밀면
- 해운대밀면
- mssql 문자열 합치기
- RichEditControl
- C# SendMessage
- C# column
- visualstudio 관리자권한
- C# Devexpress CheckListBoxControl word wrap
- 밀고
- C# 컬럼비교
- devexpress grid
- C# build
- DataTable ReadOnly
- C#
- ColumnHead MultiLine
Archives
- Today
- Total
개발자의 사투
C# DevExpress RichEditControl 특정 행 폰트변경 본문
DevExpress.XtraRichEdit.RichEditControl
사용 시 특정 행을 비교해서 굵게 표시하는 기능
private void specificLineBold(List<string> compareStr)
{
if (compareStr.isNullOrEmpty())
{
return;
}
Document document = richEditControl1.Document;
for (int i = 0; i < richEditControl1.Document.Paragraphs.Count; i++)
{
DocumentRange documentRange = richEditControl1.Document.Paragraphs[i].Range;
string specificLineStr = richEditControl1.Document.GetText(documentRange);
foreach (string compStr in compareStr)
{
if (specificLineStr.Contains(compStr))
{
CharacterProperties characterProperties = document.BeginUpdateCharacters(documentRange);
characterProperties.Bold = true;
document.EndUpdateCharacters(characterProperties);
}
}
}
}
'컴방 > C#' 카테고리의 다른 글
| C# Devexpress CheckListBoxControl 내용 줄바꿈 (0) | 2020.09.16 |
|---|---|
| visualstudio 관리자 권한 자동 실행 (0) | 2020.08.21 |
| C# WndProc 사용 시 0x8001010d 오류 해결 (1) | 2020.07.10 |
| C# Devexpress grid Row Indicator Panel visible (0) | 2020.06.30 |
| C# Devexpress DateEdit clear 공란으로 초기화하기 (0) | 2020.06.24 |
Comments