■ PictureEdit 클래스의 Properties.PictureAlignment 속성을 사용해 이미지를 정렬하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
using System.Drawing; using DevExpress.XtraEditors; PictureEdit pictureEdit = new PictureEdit(); pictureEdit.Properties.PictureAlignment = ContentAlignment.TopLeft; pictureEdit.Properties.PictureAlignment = ContentAlignment.TopCenter; pictureEdit.Properties.PictureAlignment = ContentAlignment.TopRight; pictureEdit.Properties.PictureAlignment = ContentAlignment.MiddleLeft; pictureEdit.Properties.PictureAlignment = ContentAlignment.MiddleCenter; pictureEdit.Properties.PictureAlignment = ContentAlignment.MiddleRight; pictureEdit.Properties.PictureAlignment = ContentAlignment.BottomLeft; pictureEdit.Properties.PictureAlignment = ContentAlignment.BottomCenter; pictureEdit.Properties.PictureAlignment = ContentAlignment.BottomRight; |