DocFormatter Canvas(width=null, height=null, Border border=null)A rectangular container that holds elements with arbitrary position. The canvas looks at the X, Y, HAlignment and VAlignment of each of its children. Each child will be placed at (0, 0) offset unless one of these is overridden. If there is no X offset and an HAlignment is specified and the canvas has a specified Width then the child will align as directed. If there is no Y offset and a VAlignment is specified and the canvas has a specified Height then the child will align as directed. If HAlign or YAlign is specified for the canvas, this serves as the default HAlignment and VAlignment respectively for all the children. Example 1Example = Canvas(2", 1", 1) { TextColor: Colors.Blue; Span { 1; X: 20; Y: 20; }; Span { 2; X: 40; Y: 40; }; Span { 3; HAlignment: HAligns.Right; VAlignment: VAligns.Bottom; }};123Example 2Example2 = HBox { VAlign: Top; ShowExtent(new(5, 0, Colors.Red)); ShowExtent(new(10, 0, Colors.Green));};Internal Size: 190, 40Internal Size: 180, 30PropertiesNameDescriptionActionClick action handlerBackgroundFill color inside the borderBaselineBaseline as a percentage of the heightBeginFirst item of the revision
BorderClipClip contents inside borderBorderRadiusRadius of the four corners of the frameBracketPlace brackets around the the items in the containerClipPathClipping region for the canvasConnectPointsConnect points for a shapeDelimiterAdd the delimiter only if the parent formatter is not the last item in the listDirectionStacking direction for a canvasEndLast item of the revisionHAlignHorizontal cell and canvas alignment optionsHAlignmentHorizontal cell and canvas alignment optionsHRelativeHorizontal frame alignment optionsJustifyJustification and spacing for items in a canvasLastSeparatorThe Separator between the last 2 items of a list of 3 or moreLeadingLeading as a percentage of the heightMarginOuter margin paddingMidlineMidline as a percentage of the heightOpacityDegree of opaqueness (i.e 1.0 -> normal, 0.5 -> 50% transparent)PairSeparatorThe Separator between a pair of itemsScalingModeScaling mode for bitmapsSeparationExtra space between childrenSeparatorInsert this item between all items in the containerShadowColor and size of the shadowTextAbbreviateAbbreviate unit namesTextAlignmentVertical aligments for text in a spanTextBackgroundFill color for the area behind the textTextCaseText casing optionsTextColorFill color for the textTextColumnsBreak lines after n charactersTextCultureCultureInfo objectTextDenominatorShow double values as fractions whose max denominator is this value (e.g. 8 means 3.125 -> 3 1/8)TextDiagonalUse diagonal fractionsTextDigitsNumber of decimal digits for doubles (e.g. 3 -> 3.142)TextDivisionAdd space after n charactersTextEquationFormat text as a math equationTextFaceType of font faceTextFamilyThe name of a font family or a FontFamily objectTextFormatNumeric/date format (e.g. MM-DD-YYYY)TextGroupGroup digits together (e.g. 1,000,000)TextHeightHeight of text in measure or % (e.g. 8 pts or 90%)TextHiddenDo not show textTextItalicUse Italic version of font familyTextLanguageFlags indicating the language of the textTextLetterSpaceExtra space between lettersTextLiteralDo not proofreadTextMinDigitsRemove trailing zerosTextNumPaddingThe minimum left-zero-padded size of the number (e.g. 4 -> 0001)TextOffsetVertical offset of text in measure or % of font height
TextOverlineShow a line over the textTextPercentShow numbers as a percentage (e.g. 12.2%)TextRadixRadix for integers (e.g. 2 -> binary, 10 -> decimal, 16 -> hexadecimal)TextScientificShow numbers in scientific notation (e.g. 3.02x10^23)TextSignificantTreat TextDigits as the number of significant figures (e.g. if 3 then 1.2 -> 1.20 and 3124 -> 3120TextStackedStack Nary superscripts and subscripts above and below operatorsTextStretchHorizontal font stretch factor (e.g. 2.0 -> twice as wide)TextStrikeText strike-out stylesTextUnderlineText underline stylesTextValueForce symbolic numbers (e.g. PI) into their numberic valuesTextWeightTypeface weight options (e.g. normal=400, bold=700)TextWordSpaceExtra space between wordsTipPopup tip handlerTipActionPopup tip and click action handlerTipNoPublishDo not publish tipsTransformTransform the contents and border of the object with an affine transform matrixTransformFitAdjust the (X, Y, Width, Height) after transform to fit the object into a minimal rectange=leVAlignVertical cell and canvas alignment optionsVAlignmentVertical cell and canvas alignment optionsVRelativeVertical frame alignment optionsWrappingFrame wrapping optionsXOffset of the item relative to its parentYOffset of the item relative to its parent