Platforms to show: All Mac Windows Linux Cross-Platform

Back to XLFontMBS class.

XLFontMBS.Bold as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XL MBS XL Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the font is bold.

(Read and Write property)

XLFontMBS.Book as XLBookMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XL MBS XL Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The owner object.

As a font is only valid with the owning book, we keep a back reference here.
(Read only property)

XLFontMBS.ColorRGB as Color

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XL MBS XL Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The font color as color value.

While ColorValue may return indexed color, this property converts to a Xojo color value.
(Read and Write property)

XLFontMBS.ColorValue as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XL MBS XL Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The color of the font.
Example
Var book as XLBookMBS // your book
Var textFont as XLFontMBS = book.addFont()
textFont.size = 8
textFont.ColorValue = XLFontMBS.ColorGray25

If book is in RGB mode, you need to use UnpackColor to get red, green and blue color components or color value from the returned number. If book is not in RGB mode, you receive a color number (see XLFontMBS color constants).
If you set value and book is in RGB mode you can use PackColor function to get a numeric value for a color or color components. If the book is not in RGB mode, you can use color constants in XLFontMBS classes.
(Read and Write property)

XLFontMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XL MBS XL Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The internal object reference.

(Read only property)

XLFontMBS.Italic as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XL MBS XL Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the font is italic.

If italic doesn't show, maybe check whether the chosen font supports italic.
(Read and Write property)

XLFontMBS.Name as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XL MBS XL Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The name of the font.

Default name is "Arial".
(Read and Write property)

XLFontMBS.Script as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XL MBS XL Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The script style of the font.

(Read and Write property)

XLFontMBS.Size as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XL MBS XL Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The size of the font in points.

(Read and Write property)

XLFontMBS.StrikeOut as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XL MBS XL Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the font is strikeout.

(Read and Write property)

XLFontMBS.Underline as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XL MBS XL Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The underline style of the font.

See Underline* constants.
(Read and Write property)

The items on this page are in the following plugins: MBS XL Plugin.


The biggest plugin in space...