File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -403,6 +403,13 @@ TCSS = record
403
403
// / <returns>string. Required CSS property.</returns>
404
404
class function BlockDisplayProp (const Show: Boolean): string; static;
405
405
406
+ // / <summary>Creates a CSS "display" property that causes its element to be
407
+ // / either hidden or displayed as "inline".</summary>
408
+ // / <param name="Show">Boolean [in] Flag indicating if block is to be
409
+ // / displayed (True) or hidden (False).</param>
410
+ // / <returns>string. Required CSS property.</returns>
411
+ class function InlineDisplayProp (const Show: Boolean): string; static;
412
+
406
413
// / <summary>Creates a CSS "overflow", "overflow-x" or overflow-y"
407
414
// / property.</summary>
408
415
// / <param name="Value">TCSSOverflowValue [in] Required overflow handling.
@@ -586,6 +593,14 @@ class function TCSS.HideBorderProp(const Side: TCSSSide): string;
586
593
Result := BorderProp(Side, 0 , cbsNone, clNone);
587
594
end ;
588
595
596
+ class function TCSS.InlineDisplayProp (const Show: Boolean): string;
597
+ const
598
+ // Map of flag onto required display style
599
+ BlockDisplayStyles: array [Boolean] of TCSSDisplayStyle = (cdsNone, cdsInline);
600
+ begin
601
+ Result := DisplayProp(BlockDisplayStyles[Show]);
602
+ end ;
603
+
589
604
class function TCSS.LengthList (const List: array of Integer;
590
605
const LU: TCSSLengthUnit): string;
591
606
var
You can’t perform that action at this time.
0 commit comments