PeachPDF

PeachPDF.Layout.IContainer

IContainer.Class(string) Method

Tags this container with a CSS class name, so a stylesheet attached via Stylesheet(PeachPdfCssContent) can target it with a .className selector (including compound/descendant selectors built from it). Purely inert metadata with no visual effect when no stylesheet is attached - safe to call as a stable hook even if styling is added later. Calling this more than once on the same container adds an additional class (space-separated), matching HTML’s own multi-valued class attribute, rather than replacing the previous one.

PeachPDF.Layout.IContainer Class(string className);

Parameters

className System.String

Returns

IContainer