NShape Reference
FillStyle

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape >

NShape Reference
FillStyle

Previous pageReturn to chapter overviewNext page

Provides the definition of filling.

Syntax

public sealed class FillStyle : StyleIFillStyle

Description

Implementation of the IFillStyle interface with writable properties.

Public Properties

Name

Description

Default

This static read-only field represents a default and not initialized fill style.

StandardNames

Returns the StandardFillStyleNames.

AdditionalColorStyle

The additional color of the fill style. Depending on the FillMode this means the color of the gradient's upper left or the fore color of a pattern.

BaseColorStyle

The base color of the fill style. Depending on the FillMode this means the fill color (FillMode.Solid), the color of a gradient's lower right (FillMode.Gradient) or a pattern's background color (FillMode.Pattern).

ConvertToGrayScale

Specifies if the colors or the image should be converted into grayscale.

GradientAngle

The angle of the color gradient in degrees. 45 means from upper left to lower right.

FillMode

Specifies the fill mode.

FillPattern

The fill pattern, applies only when FillMode is set to FillMode.Pattern.

Image

Defines the image of a fill style, applies only when FillMode is set to FillMode.Image.

ImageCompressionQuality

Defines the compression factor (in percentage) when the image is saved as file with a lossy image compression format.

ImageGammaCorrection

Defines the gamma correction of the image. Applies only when FillMode is set to FillMode.Image.

ImageLayout

Defines the layout of the image inside its bounds. Applies only when FillMode is set to FillMode.Image.

ImageTransparency

Defines the transparency of the image. Applies only when FillMode is set to FillMode.Image.

Public Methods

Name

Description

Assign

Copies all properties of the given style into the current style.

Protected Methods

Name

Description

IsStandardName

returns true if the given string matches a standard style name (comparison is performed case insensitive).

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape