DIAdem Help

Object: Font

  • Updated2024-09-12
  • 1 minute(s) read

Object: Font

The Font object provides access to the font in a textbox or in a channel table in DIAdem VIEW. In the Font object, you specify or request the font, the font style, and the font size.

The following example creates a textbox with the current date and formats the text row:

VBScriptPython

 

Dim oMySheet, oMyObj, OMyFont
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.ActiveArea.DisplayObjType = "TextBox"
Set oMyObj = oMySheet.ActiveArea.DisplayObj
Set OMyFont = oMyObj.Font
OMyFont.Name = "Arial"
OMyFont.Size = 48
oMyObj.BkColor = "violet"
oMyObj.Color = "black"
oMyObj.Text = "Current date: @CurrDate@"

Properties

Bold | Italic | Name | Size

Returned From

ChannelTable.Font | TextBox.Font