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

using DevExpress.Office.Utils;
using DevExpress.Xpf.RichEdit;
using DevExpress.XtraRichEdit.API.Native;

RichEditControl richEditControl = new RichEditControl();

...

Document            document            = richEditControl.Document;            
DocumentRange       documentRange       = document.Selection;
ParagraphProperties paragraphProperties = document.BeginUpdateParagraphs(documentRange);

paragraphProperties.Alignment             = ParagraphAlignment.Center;
paragraphProperties.LineSpacingType       = ParagraphLineSpacing.Multiple;
paragraphProperties.LineSpacingMultiplier = 3;
paragraphProperties.LeftIndent            = Units.InchesToDocumentsF(0.5f);

TabInfoCollection tabInfoCollection = paragraphProperties.BeginUpdateTabs(true);
TabInfo           tabInfo           = new TabInfo();

tabInfo.Alignment = TabAlignmentType.Center;
tabInfo.Position  = Units.InchesToDocumentsF(1.5f);

tabInfoCollection.Add(tabInfo);

paragraphProperties.EndUpdateTabs(tabInfoCollection);

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

댓글을 달아 주세요