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 |
Tags
- C# 0x8001010d
- Delphi
- DataTable ReadOnly
- devexpress grid
- 해운대밀면
- delphi JSON
- C# 컬럼비교
- C#
- 밀고
- C# WndProc
- C# linq pivot
- mssql 문자열 합치기
- C# build
- 델파이
- C# Devexpress CheckListBoxControl word wrap
- C# SendMessage
- C# DataTable linq
- drawgrid
- C# Devexpress CheckListBoxControl 줄 바꿈
- RichEditControl
- CustomDrawColumnHeader
- C# Devexpress
- RichEditControl Bold
- C# 매크로
- visualstudio 관리자권한
- C# column
- 밀면
- Row Indicator
- ColumnHead MultiLine
- C# 빌드이벤트
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