본문 바로가기

전체 글170

DevExpress GridControl 특정 셀에 핸드 커서 표시 public static void GridBandColumnHandCursor(BandedGridView view, params string[]fieldName) { view.MouseMove += (sender, e) => HandCursor_BandedGridView_MouseMove(sender, e, fieldName); } private static void HandCursor_BandedGridView_MouseMove(object sender, MouseEventArgs e, params string[]fieldName) { BandedGridView view = sender as BandedGridView; if (view != null) { DevExpress.XtraGrid.Views... 2023. 11. 13.
DevExpress SreadsheetControl 데브익스프레스의 스프레드시트컨트롤에 엑셀 파일을 바인딩 시키고 로드된 시트 데이타의 위치(좌표) 정보를 가져오는 예. SreadsheetControl spread = new SpreadsheetControl(); spread.LoadDocument(localFileName, DocumentFormat.Xlsx); Worksheet sheet = spread.Document.Worksheets[0]; Range usedRange = spread.Document.Worksheets[0].GetUsedRange(); int topRowIndex = usedRange.TopRowIndex; int bottomRowIndex = usedRange.BottomRowIndex; int leftColumnIndex =.. 2023. 11. 13.
c# DevExpress RichEditor 행번호 리치에디터 행번호 using DevExpress.Portable; using DevExpress.XtraRichEdit; // Specify Simple View parameters: SimpleView simpleView = richEditControl.Views.SimpleView; simpleView.AllowDisplayLineNumbers = true; simpleView.Padding = new PortablePadding(60, 0, 0, 0); // Specify Draft View parameters: DraftView draftView = richEditControl.Views.DraftView; draftView.AllowDisplayLineNumbers = true; draftVie.. 2023. 11. 13.
c# 도형 그리기. Graphics, Drawing, Bitmap 요점 1. Graphics 에 Bitmap을 참조 시켜서 직접 그리는 방식은 저장을 하기 위해서는 필요 함. 단, 리사이즈 및 이동 시에 그려놓은 이미지가 위치 이동이 될 수 있음 요점 2. 그래서 pictureBox에 직접 paint 이벤트에서 Drawing을 하면 리사이즈 및 이동시에도 위치 변경이 없음. 단, 저장을 위해서는 Bitmap에 그리는 행위가 또 필요함. public Bitmap GenerateBitmap(PictureBox target) { int wt = target.ClientSize.Width, ht = target.ClientSize.Height; Bitmap bmp = new Bitmap(wt, ht, PixelFormat.Format32bppArgb); Graphics g =.. 2023. 11. 13.
반응형