AutoSize
Originオブジェクトの自動サイズ設定に使用します。
BOOL AutoSize( DWORD dwCntrl = 0, DWORD lParam = 0, void * pVoid = NULL, BOOL bUndo = FALSE, void * pOpt = NULL )
成功した場合はTRUE、失敗した場合はFALSE
EX1
void wks_fitsize_selection() { Worksheet wks = Project.ActiveLayer(); int iret = wks.AutoSize(AS_SELECTION); }
EX2
void wks_fitsize_range(int r1, int c1, int r2, int c2) { ORANGE rng; rng.r1 = r1; rng.c1 = c1; rng.r2 = r2; rng.c2 = c2; Worksheet wks = Project.ActiveLayer(); int iret = wks.AutoSize(AS_INVALIDATE, 0, NULL, FALSE, &rng); }
origin.h