IXlsChartTextBox
COM interface ( getting help with interfaces )

 

interface IXlsChartTextBox : IDispatch
{
  [id(1),propput] HRESULT Label([in]BSTR label);
  [id(1),propget] HRESULT Label([out, retval]BSTR* label);
  [id(2),propput] HRESULT RichLabel([in]IXlsRichLabel* rl);
  [id(3),propget] HRESULT Options([out, retval]IXlsChartOptions** options);
  [id(4),propput] HRESULT Hyperlink([in]IXlsHyperlink* hlink);
  [id(5),propget] HRESULT AutoSize([out, retval] BOOL* autosize);
  [id(5),propput] HRESULT AutoSize([in]BOOL autosize);
  [id(6),propput] HRESULT Formula([in]BSTR formula);
  [id(6),propget] HRESULT Formula([out, retval]BSTR* formula);
  [id(7),propget] HRESULT AlternativeText([out, retval]BSTR* text);
  [id(7),propput] HRESULT AlternativeText([in]BSTR text);
  [id(8),propget] HRESULT FlipHorizontal([out, retval] BOOL* flipHorz);
  [id(8),propput] HRESULT FlipHorizontal([in]BOOL flipHorz);
  [id(9),propget] HRESULT FlipVertical([out, retval] BOOL* flipVert);
  [id(9),propput] HRESULT FlipVertical([in]BOOL flipVert);
  [id(10),propget] HRESULT Rotation([out, retval] int* angle);
  [id(10),propput] HRESULT Rotation([in]int angle);
  [id(11),propput] HRESULT MarginLeft([in]int pixels);
  [id(12),propput] HRESULT MarginRight([in]int pixels);
  [id(13),propput] HRESULT MarginTop([in]int pixels);
  [id(14),propput] HRESULT MarginBottom([in]int pixels);
  [id(15),propput] HRESULT VBAMacro([in]BSTR macro);
  [id(15),propget] HRESULT VBAMacro([out, retval]BSTR* macro);

}

 

HRESULT Label([in]BSTR label);
sets the content of the text box.

HRESULT Label([out, retval]BSTR* label);
returns the content of the text box.

HRESULT RichLabel([in]IXlsRichLabel* rl);
sets the content of the text box using richly formatting labels.

HRESULT Options([out, retval]IXlsChartOptions** options);
returns the formatting options object.

HRESULT Hyperlink([in]IXlsHyperlink* hlink);
adds a hyperlink to the text box.

HRESULT AutoSize([out, retval] BOOL* autosize);
returns whether the text box should auto scale to fit the text. This option is ignored if the text box is part of an Excel 2007 file.

HRESULT AutoSize([in]BOOL autosize);
sets whether the text box should auto scale to fit the text. This option is ignored if the text box is part of an Excel 2007 file.

HRESULT Formula([in]BSTR formula);
sets the formula for the chart text box.

HRESULT Formula([out, retval]BSTR* formula);
returns the formula for the chart text box.

HRESULT AlternativeText([out, retval]BSTR* text);
returns the alternative text. Optional.

HRESULT AlternativeText([in]BSTR text);
sets the alternative text. Optional.

HRESULT FlipHorizontal([out, retval] BOOL* flipHorz);
returns whether the text box is flipped horizontally.

HRESULT FlipHorizontal([in]BOOL flipHorz);
sets whether the text box is flipped horizontally.

HRESULT FlipVertical([out, retval] BOOL* flipVert);
returns whether the text box is flipped vertically.

HRESULT FlipVertical([in]BOOL flipVert);
sets whether the text box is flipped vertically.

HRESULT Rotation([out, retval] int* angle);
returns the rotation angle of the text box. Default is 0 degree.

HRESULT Rotation([in]int angle);
sets the rotation angle of the text box. Default is 0 degree.

HRESULT MarginLeft([in]int pixels);
sets the left margin inside the text box, in pixels. Default is : automatic margin computation.

HRESULT MarginRight([in]int pixels);
sets the right margin inside the text box, in pixels. Default is : automatic margin computation.

HRESULT MarginTop([in]int pixels);
sets the top margin inside the text box, in pixels. Default is : automatic margin computation.

HRESULT MarginBottom([in]int pixels);
sets the bottom margin inside the text box, in pixels. Default is : automatic margin computation.

HRESULT VBAMacro([in]BSTR macro);
sets the vba macro name for the text box.

HRESULT VBAMacro([out, retval]BSTR* macro);
returns the vba macro name for the text box.