첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System.Drawing;

using DevExpress.XtraRichEdit;
using DevExpress.XtraRichEdit.API.Native;

...

RichEditControl richEditControl;

...

Document document = richEditControl.Document;

for(int i = 0; i < richEditControl.Document.Paragraphs.Count; i++)
{
    DocumentRange documentRange = richEditControl.Document.Paragraphs[i].Range;

    CharacterProperties characterProperties = document.BeginUpdateCharacters(documentRange);

    characterProperties.FontName  = "바탕체";
    characterProperties.FontSize  = 12;
    characterProperties.ForeColor = Color.Black;
    characterProperties.BackColor = Color.White;
    characterProperties.Bold      = false;
    characterProperties.Underline = UnderlineType.None;

    document.EndUpdateCharacters(characterProperties);
}
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요