WinForms윈폼 ComboBoxCellType
페이지 정보
작성자 정재원 작성일 2021-07-09 19:32 조회 2,415회 댓글 0건본문
관련링크
FarPoint.Win.Spread.CellType.ComboBoxCellType comboBoxCellType1 = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
comboBoxCellType1.AllowEditorVerticalAlign = true;
comboBoxCellType1.ButtonAlign = FarPoint.Win.ButtonAlign.Right;
comboBoxCellType1.Clear();
string[] sItems = new string[4];
for (int i = 0; i < 4; i++)
{
sItems[i] = i.ToString();
}
comboBoxCellType1.Items = sItems;
comboBoxCellType1.AutoSearch = FarPoint.Win.AutoSearch.None;
comboBoxCellType1.ButtonAlign = FarPoint.Win.ButtonAlign.Right;
comboBoxCellType1.ListAlignment = FarPoint.Win.ListAlignment.Left;
comboBoxCellType1.Editable = false;
fpWp82.ActiveSheet.Cells[6, 3].CellType = comboBoxCellType1;
위와같이 보여주는 값이 숫자로 0,1,2,3, 콤보박스로 보여지는데 2번이 기본적으로 보여지게 할려면 어떻게 해야 할까요?
셀에 콤보박스의 상하단 또는 좌우 텍스트 정렬 옵션은 없는건가요?
단순 보여지는 용도로만 사용할려고 합니다.
그래서 itemsdata 는 사용하지 않았습니다.
댓글목록
등록된 댓글이 없습니다.