The Style type exposes the following members.

Methods

  Name Description
Public method AssignNonInheritedFrom
Copies to the current style all properties of another Style object that have been explicitly set on that other style, plus the values of the Parent and AmbientParent properties.
Public method Clear
Clears the current style, resets all properties so that they inherit from the parent style.

Properties

  Name Description
Public property ActiveHyperlinkAttrs
Gets or sets a C1HyperlinkAttrs for active hyperlinks.
Public property ActiveHyperlinkAttrsExpr
Gets or sets the expression used to calculate ActiveHyperlinkAttrs.
Public property AmbientParent
Gets or sets the Style that is the ambient parent of the current style.

If non-null, that style provides the values for ambient properties of the current style that have not been explicitly set.

If null, such properties are inherited from the style of the containing object.

This property is null by default.

Public property BackColor
Gets or sets the background color. If both this and Brush properties are specified for a style, this property takes precedence.
Public property BackColorExpr
Gets or sets the expression used to calculate BackColor.
Public property BackgroundImage
Gets or sets the background image. The image is aligned using BackgroundImageAlign.
Public property BackgroundImageAlign
Gets or sets the background image alignment.
Public property BackgroundImageExpr
Gets or sets the expression used to calculate BackgroundImage.
Public property BackgroundImageName
Gets or sets the name of the background image in Dictionary on the current document.
Public property Borders
Gets or sets the borders drawn around the current style's owner object.
Public property Brush
Gets or sets the brush used to fill the background. If both this and BackColor properties are specified for a style, the BackColor takes precedence.
Public property BrushExpr
Gets or sets the expression used to calculate Brush.
Public property CharSpacing
Gets or sets the spacing between characters in a text.
Public property CharSpacingExpr
Gets or sets the expression used to calculate CharSpacing.
Public property CharWidth
Gets or sets the amount (in percent) by which to increase or decrease the widths of characters in a text.
Public property CharWidthExpr
Gets or sets the expression used to calculate CharWidth.
Public property Children
Gets the collection of child styles (i.e. Style objects that have their Parent set to the current style).
Public property ClientAreaOnly
Gets or sets a value indicating whether just the client area of a Control, or the whole control, is rendered by the RenderImage object owning the current style.
Public property ClientAreaOnlyExpr
Gets or sets the expression used to calculate ClientAreaOnly.
Public property FlowAlign
Gets or sets the alignment of the current style's owner object within its container in a block flow.
Public property FlowAlignChildren
Gets or sets the alignment of children of the current style's owner object in a block flow.
Public property FlowAlignChildrenExpr
Gets or sets the expression used to calculate FlowAlignChildren.
Public property FlowAlignExpr
Gets or sets the expression used to calculate FlowAlign.
Public property Font
Gets or sets the font.
Public property FontBold
Gets or sets a value indicating whether the font is bold.
Public property FontBoldExpr
Gets or sets the expression used to calculate FontBold.
Public property FontItalic
Gets or sets a value indicating whether the font is italic.
Public property FontItalicExpr
Gets or sets the expression used to calculate FontItalic.
Public property FontName
Gets or sets the face name of the font.
Public property FontNameExpr
Gets or sets the expression used to calculate FontName.
Public property FontSize
Gets or sets the em-size of the font.
Public property FontSizeExpr
Gets or sets the expression used to calculate FontSize.
Public property FontStrikeout
Gets or sets a value indicating whether the font is strikeout.
Public property FontStrikeoutExpr
Gets or sets the expression used to calculate FontStrikeout.
Public property FontUnderline
Gets or sets a value indicating whether the font is underlined.
Public property FontUnderlineExpr
Gets or sets the expression used to calculate FontUnderline.
Public property GridLines
Gets or sets the grid lines used to draw tables.
Public property HasChildren
Gets a value indicating whether the current style's Children collection has been initialized and contains one or more elements.
Public property HasExprs
Gets a value indicating whether the current style has calculated properties.
Public property HoverHyperlinkAttrs
Gets or sets a C1HyperlinkAttrs for highlighted hyperlinks.
Public property HoverHyperlinkAttrsExpr
Gets or sets the expression used to calculate HoverHyperlinkAttrs.
Public property HyperlinkAttrs
Gets or sets a C1HyperlinkAttrs for "normal" (neither visited nor highlighted) hyperlinks.
Public property HyperlinkAttrsExpr
Gets or sets the expression used to calculate HyperlinkAttrs.
Public property ImageAlign
Gets or sets the foreground image alignment.
Public property JustifyEndOfLines
Gets or sets a value indicating whether lines of text ending with a newline character should be justified if the current style has TextAlignHorz set to Justify or JustifyChars.
Public property JustifyEndOfLinesExpr
Gets or sets the expression used to calculate JustifyEndOfLines.
Public property JustifyLastLine
Gets or sets a value indicating whether the last line of text should be justified if the current style has TextAlignHorz set to Justify or JustifyChars.
Public property JustifyLastLineExpr
Gets or sets the expression used to calculate JustifyLastLine.
Public property LineSpacing
Gets or sets the line spacing of a text in percent.
Public property LineSpacingExpr
Gets or sets the expression used to calculate LineSpacing.
Public property MeasureTrailingSpaces
Gets or sets a value indicating whether spaces at ends of text lines are taken into account when measuring the text.
Public property MeasureTrailingSpacesExpr
Gets or sets the expression used to calculate MeasureTrailingSpaces.
Public property MinOrphanLines
Gets or sets the minimum number of orphan text lines allowed on a page before or after a page break.
Public property MinOrphanLinesExpr
Gets or sets the expression used to calculate MinOrphanLines.
Public property Owner
Gets the owner of the current style.
Public property Padding
Gets or sets the padding (white space added between the style owner's content and borders).
Public property Parent
Gets or sets the Style that is the parent of the current style.

If non-null, that style provides the values for non-ambient properties of the current style that have not been explicitly set.

If null, such properties have default values.

This property is null by default.

Public property Parents
Sets both parents (Parent and AmbientParent) to the same value.
Public property Shadow
Gets or sets properties of the shadow cast by the current object. By default the shadow is invisible due to being 100% transparent. Set Shadow.Transparency to a value less than 100, to show shadow. Other properties can be adjusted as needed.
Public property ShapeFillBrush
Gets or sets the brush used to fill internal areas of shapes (objects derived from RenderShapeBase). If for a style both this and ShapeFillColor are specified, ShapeFillColor takes precedence.
Public property ShapeFillBrushExpr
Gets or sets the expression used to calculate ShapeFillBrush.
Public property ShapeFillColor
Gets or sets the color used to fill internal areas of shapes (objects derived from RenderShapeBase). If for a style both this and ShapeFillBrush are specified, this property takes precedence.
Public property ShapeFillColorExpr
Gets or sets the expression used to calculate ShapeFillBrush.
Public property ShapeLine
Gets or sets the style of lines used to draw shape objects (RenderLine, RenderRectangle etc).
Public property ShapeLineExpr
Gets or sets the expression used to calculate ShapeLine.
Public property Spacing
Gets or sets the spacing between the the current style's owner and the surrounding objects.
Public property TextAlignHorz
Gets or sets the horizontal text alignment.
Public property TextAlignHorzExpr
Gets or sets the expression used to calculate TextAlignHorz.
Public property TextAlignVert
Gets or sets the vertical text alignment.
Public property TextAlignVertExpr
Gets or sets the expression used to calculate TextAlignVert.
Public property TextAngle
Gets or sets the text rotation angle, in degrees counterclockwise from the X axis.
Public property TextAngleExpr
Gets or sets the expression used to calculate TextAngle.
Public property TextColor
Gets or sets the text (foreground) color.
Public property TextColorExpr
Gets or sets the expression used to calculate TextColor.
Public property TextIndent
Gets or sets the indentation of the first line in a block of text.
Public property TextIndentExpr
Gets or sets the expression used to calculate TextIndent.
Public property TextPosition
Gets or sets a value indicating whether text is rendered normally, or as superscript or subscript.
Public property TextPositionExpr
Gets or sets the expression used to calculate TextPosition.
Public property VisitedHyperlinkAttrs
Gets or sets a C1HyperlinkAttrs for visited hyperlinks.
Public property VisitedHyperlinkAttrsExpr
Gets or sets the expression used to calculate VisitedHyperlinkAttrs.
Public property WordWrap
Gets or sets a value indicating whether text automatically wraps to the next line when there is not enough space left on the current line.
Public property WordWrapExpr
Gets or sets the expression used to calculate WordWrap.

See Also