Platforms to show: All Mac Windows Linux Cross-Platform
CDTextBoxMBS class
Super class: CDBoxMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | ChartDirector | MBS ChartDirector Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Subclass of the CDBoxMBS class.
This is a subclass of an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 13 methods
- method setAlignment(a as Integer)
- method setFontAngle(angle as Double, vertical as boolean=false)
- method setFontColor(colorvalue as color)
- method setFontColor(colorvalue as Integer)
- method setFontSize(fontHeight as Double, fontWidth as Double = 0)
- method setFontStyle(font as string, fontIndex as Integer = 0)
- method setHeight(height as Integer)
- method setMargin(leftMargin as Integer, rightMargin as Integer, topMargin as Integer, bottomMargin as Integer)
- method setMargin(m as Integer)
- method setMaxWidth(width as Integer)
- method setText(text as string)
- method setTruncate(maxWidth as Integer, maxLines as Integer = 1)
- method setWidth(width as Integer)
Super class CDBoxMBS
- 11 methods
- method Constructor Private
- method getHeight as Integer
- method getImageCoor(OffsetX as Integer = 0, OffsetY as Integer = 0) as string
- method getLeftX as Integer
- method getTopY as Integer
- method getWidth as Integer
- method setBackground(colorvalue as color, edgeColor as color, raisedEffect as Integer = 0)
- method setBackground(colorvalue as Integer, edgeColor as Integer = -1, raisedEffect as Integer = 0)
- method setPos(x as Integer, y as Integer)
- method setRoundedCorners(r1 as Integer = 10, r2 as Integer = -1, r3 as Integer = -1, r4 as Integer = -1)
- method setSize(w as Integer, h as Integer)
Super class CDDrawObjMBS
- 3 methods
- method Constructor Private
- method paint(d as CDDrawAreaMBS)
- method setZOrder(z as Integer)
Sub classes:
Some methods using this class:
- CDBaseChartMBS.addTitle(text as string, font as string, fontsize as Double, fontColor as color, bgColor as color, edgeColor as color) as CDTextBoxMBS
- CDLayerMBS.addCustomAggregateLabel(dataItem as Integer, label as string, font as string, fontSize as Double, fontColor as color, fontAngle as Double = 0) as CDTextBoxMBS
- CDLayerMBS.setDataLabelStyle(font as string = "", fontSize as Double = 8, fontcolor as color, fontAngle as Double = 0) as CDTextBoxMBS
- CDLayerMBS.setDataLabelStyle(font as string = "", fontSize as Double = 8, fontcolor as Integer = &hffff0002, fontAngle as Double = 0) as CDTextBoxMBS
- CDMLTableMBS.appendRow as CDTextBoxMBS
- CDMLTableMBS.setCell(col as Integer, row as Integer, width as Integer, height as Integer, text as string) as CDTextBoxMBS
- CDMLTableMBS.setText(col as Integer, row as Integer, text as string) as CDTextBoxMBS
- CDPyramidLayerMBS.setCenterLabel(labelTemplate as string = "", font as string = "", fontSize as Double = 8, fontColor as Integer = -1) as CDTextBoxMBS
- CDPyramidLayerMBS.setCenterLabel(labelTemplate as string, font as string, fontSize as Double, fontColor as color) as CDTextBoxMBS
- CDPyramidLayerMBS.setRightLabel(labelTemplate as string = "", font as string = "", fontSize as Double = 8, fontColor as Integer = -1) as CDTextBoxMBS
Some examples using this class:
- /ChartDirector/binaryseries
- /ChartDirector/ChartDirector Control for Web
- /ChartDirector/concentric
- /ChartDirector/donut
- /ChartDirector/fontxy
- /ChartDirector/markbar
- /ChartDirector/multidepthpie
- /ChartDirector/simplePie with DynaPDF
- /ChartDirector/texturedonut
- /ChartDirector/threeddonut
Blog Entries
Xojo Developer Magazine
- 7.4, pages 34 to 35: Easy Charts and Graphs, Using the ChartDirector Plugin
- 7.4, page 29: Easy Charts and Graphs, Using the ChartDirector Plugin
- 20.4, page 39: PDF Pie Charts, Adding Xojo Charts to Your PDFs by Stefanie Juchmes
- 17.2, page 35: More Beyond JSON, Develop APIs That Generate Barcodes, Charts, and More by Timothy Dietrich
The items on this page are in the following plugins: MBS ChartDirector Plugin.
CDSurfaceChartMBS - CDThreeDChartMBS