Skip to main content
Version: 2025

stdole_Font

Namespace: PPJ.Runtime.Com

Assembly: PPJ.Web.50 (5.0.0.0)

Wraps the standard OLE font automation interface using SAL values.

public class stdole_Font : SalObject

Attach an appropriate COM object before accessing interface properties.

Example:

using PPJ.Runtime.Com;

using (var value = new stdole_StdFont())
{
if (value.Create())
System.Console.WriteLine(value.IsDispatchValid());
}

Constructors​

Instance member stdole_Font()​

Initializes a new instance of stdole_Font.

Fields​

NameTypeDescriptionValue
_InterfaceCOMInterfaceThe typed OLE automation interface attached to this wrapper.

Methods​

Instance member PropGetBold(returnValue)​

Reads the bold formatting flag from the attached OLE interface.

ParameterTypeDescription
returnValue by referenceSalBooleanReceives the bold formatting flag.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropGetCharset(returnValue)​

Reads the character-set identifier from the attached OLE interface.

ParameterTypeDescription
returnValue by referenceSalNumberReceives the character-set identifier.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropGetItalic(returnValue)​

Reads the italic formatting flag from the attached OLE interface.

ParameterTypeDescription
returnValue by referenceSalBooleanReceives the italic formatting flag.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropGetName(returnValue)​

Reads the font family name from the attached OLE interface.

ParameterTypeDescription
returnValue by referenceSalStringReceives the font family name.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropGetSize(returnValue)​

Reads the font size in points from the attached OLE interface.

ParameterTypeDescription
returnValue by referenceSalNumberReceives the font size in points.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropGetStrikethrough(returnValue)​

Reads the strikethrough formatting flag from the attached OLE interface.

ParameterTypeDescription
returnValue by referenceSalBooleanReceives the strikethrough formatting flag.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropGetUnderline(returnValue)​

Reads the underline formatting flag from the attached OLE interface.

ParameterTypeDescription
returnValue by referenceSalBooleanReceives the underline formatting flag.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropGetWeight(returnValue)​

Reads the font weight from the attached OLE interface.

ParameterTypeDescription
returnValue by referenceSalNumberReceives the font weight.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropSetBold(Bold)​

Assigns the bold formatting flag on the attached OLE interface.

ParameterTypeDescription
BoldSalBooleanThe bold formatting flag to assign.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropSetCharset(Charset)​

Assigns the character-set identifier on the attached OLE interface.

ParameterTypeDescription
CharsetSalNumberThe character-set identifier to assign.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropSetItalic(Italic)​

Assigns the italic formatting flag on the attached OLE interface.

ParameterTypeDescription
ItalicSalBooleanThe italic formatting flag to assign.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropSetName(Name)​

Assigns the font family name on the attached OLE interface.

ParameterTypeDescription
NameSalStringThe font family name to assign.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropSetSize(Size)​

Assigns the font size in points on the attached OLE interface.

ParameterTypeDescription
SizeSalNumberThe font size in points to assign.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropSetStrikethrough(Strikethrough)​

Assigns the strikethrough formatting flag on the attached OLE interface.

ParameterTypeDescription
StrikethroughSalBooleanThe strikethrough formatting flag to assign.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropSetUnderline(Underline)​

Assigns the underline formatting flag on the attached OLE interface.

ParameterTypeDescription
UnderlineSalBooleanThe underline formatting flag to assign.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Instance member PropSetWeight(Weight)​

Assigns the font weight on the attached OLE interface.

ParameterTypeDescription
WeightSalNumberThe font weight to assign.

Returns: SalBoolean. True on success; false when a COM error is recorded with AutoErrorMode disabled.

Inherited By​

NameDescription
stdole_StdFontWraps the standard OLE font coclass for activation and SAL-compatible access.