IXlsFont
COM interface ( getting help with interfaces )

 

interface IXlsFont : IDispatch
{
  [id(1), propget] HRESULT Name([out, retval] BSTR* name);
  [id(1), propput] HRESULT Name([in]BSTR name);
  [id(2), propget] HRESULT Size([out, retval] double* size);
  [id(2), propput] HRESULT Size([in]double size);
  [id(3), propget] HRESULT Bold([out, retval] BOOL* bBold);
  [id(3), propput] HRESULT Bold([in]BOOL bBold);
  [id(4), propget] HRESULT Italic([out, retval] BOOL* bItalic);
  [id(4), propput] HRESULT Italic([in]BOOL bItalic);
  [id(5), propget] HRESULT Underlined([out, retval] enumUnderline* underlined);
  [id(5), propput] HRESULT Underlined([in]enumUnderline underlined);
  [id(6), propget] HRESULT Exponent([out, retval] enumExponent* exponent);
  [id(6), propput] HRESULT Exponent([in]enumExponent exponent);
  [id(7), propget] HRESULT Strikeout([out, retval] BOOL* bStrikeout);
  [id(7), propput] HRESULT Strikeout([in]BOOL bStrikeout);
  [id(8), propget] HRESULT Color([out, retval] int* nRGB);
  [id(8), propput] HRESULT Color([in]int nRGB);
  [id(9), propget] HRESULT Family([out, retval] enumFontFamily* family);
  [id(9), propput] HRESULT Family([in]enumFontFamily family);
  [id(10),propget] HRESULT Charset([out, retval] enumFontCharset* charset);
  [id(10),propput] HRESULT Charset([in]enumFontCharset charset);

}

 

HRESULT Name([out, retval] BSTR* name);
sets the font name to use. Example : "Arial".

HRESULT Name([in]BSTR name);
sets the font name to use. Example : "Arial".

HRESULT Size([out, retval] double* size);
sets the height of the font. Example : 10 (10 pixels).

HRESULT Size([in]double size);
sets the height of the font. Example : 10 (10 points).

HRESULT Bold([out, retval] BOOL* bBold);
retrieves whether the font has bold style.

HRESULT Bold([in]BOOL bBold);
sets whether the font should be bold. Example : true.

HRESULT Italic([out, retval] BOOL* bItalic);
retrieves whether the font has italic style.

HRESULT Italic([in]BOOL bItalic);
sets whether the font should be italic. Example : true.

HRESULT Underlined([out, retval] enumUnderline* underlined);
retrieves whether the font has underlined style.

HRESULT Underlined([in]enumUnderline underlined);
sets whether the font should be underlined. Uses an enumerated type. Example : fontunderline_simple.

HRESULT Exponent([out, retval] enumExponent* exponent);
retrieves whether the font has exponent style.

HRESULT Exponent([in]enumExponent exponent);
sets whether the font should use exponent mode. Uses an enumerated type. Example : fontexponent_normal.

HRESULT Strikeout([out, retval] BOOL* bStrikeout);
retrieves whether the font has strikeout style.

HRESULT Strikeout([in]BOOL bStrikeout);
sets whether the font should be with strikeout. Example : true.

HRESULT Color([out, retval] int* nRGB);
retrieves the color of the font.

HRESULT Color([in]int nRGB);
sets the color of the font. Uses a 24-bit color number or an enumerated type. Examples : 46576438, RGB(200,40,40).

HRESULT Family([out, retval] enumFontFamily* family);
retrieves the font family. Default is none.

HRESULT Family([in]enumFontFamily family);
sets the font family. Default is none.

HRESULT Charset([out, retval] enumFontCharset* charset);
retrieves the font charset. Default is ANSI.

HRESULT Charset([in]enumFontCharset charset);
sets the font charset. Default is ANSI.