Files
envi-code/SourceCode/Code2026/ThunderProof/DrawSheet.h
T

47 lines
1.3 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
// = FileName: DrawSheet.h
2026-09-28 15:28:50 +08:00
// = Date: 2008/07/08
2026-10-04 00:04:20 +08:00
// = Description: 操作表格
2026-09-28 15:28:50 +08:00
// = Maintainers:
#ifndef _DRAWSHEET_H__
#define _DRAWSHEET_H__
#if _MSC_VER > 1000
#pragma once
#endif
#include <dbgridsheet.h>
class TelDrawSheet
{
public:
TelDrawSheet();
virtual ~TelDrawSheet();
public:
2026-10-04 00:04:20 +08:00
void SetLayer(LPCTSTR lpLayer); //设置层
void SetGridStyle(const TGridStyle &style); //设置风格
void SetRowHeight(double dHeight); //设置行高
void SetTitleHeight(double dHeight);//设置标题高度
void SetTitleVisible(BOOL bShow); //是否显示标题
void SetLocation(AcGePoint3d pt);//插入表的坐标
void SetRotation(double dRotate);//角度
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
void InitSheet(int nRow,int nCol,double dRowHeight,double dColHeight); //初始化表
2026-09-28 15:28:50 +08:00
void AddRowAt(int i);
2026-10-04 00:04:20 +08:00
void SetColumnText(int nCol,LPCTSTR lpText,double dWidth);//列文字
void SetText(int nRow,int nCol,LPCTSTR lpText);//表内容
void SetTitleText(LPCTSTR lpText);//标题文字
void SetTitleTestStyle(const TGridStyle &gridStyle);//设置标题风格
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
void RemoveColumn(int nCol); //删除列
void RemoveRow(int nRow);//删除行
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
void MergeCells(int nRowFrom,int nColFrom,int nRowTo,int nColTo);//合并单元格
2026-09-28 15:28:50 +08:00
void AddToCSpace(BOOL bShow);
private:
AecDbSheet *m_pSheet;
};
#endif // !defined(_DRAWSHEET_H__)