CompositeDesignerTheme Class

 
Note: This API is now obsolete.

Provides theme settings to CompositeActivityDesigner objects.

Namespace:   System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)


[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class CompositeDesignerTheme : ActivityDesignerTheme

NameDescription
System_CAPS_pubmethodCompositeDesignerTheme(WorkflowTheme)

Initializes a new instance of the CompositeDesignerTheme class.

NameDescription
System_CAPS_pubpropertyApplyTo

Gets or sets the unqualified name of the designer type to which the designer theme is applied. (Inherited from DesignerTheme.)

System_CAPS_pubpropertyBackColorEnd

Gets or sets the Color to end with when using a color gradient for the background color.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyBackColorStart

Gets or sets the starting color of the background when using a color gradient on the background.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyBackgroundStyle

Gets or sets the background style.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyBoldFont

Gets the font for the theme.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyBorderColor

Gets or sets the BorderColor for the theme.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyBorderPen

Gets the BorderPen for the theme.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyBorderStyle

Gets or sets the style used for the border.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyBorderWidth

Gets the width of the border in pixels.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyConnectorEndCap

Gets or sets a value that determines the shape that appears at the end of a connector.

System_CAPS_pubpropertyConnectorSize

Gets the Size of the connector.

System_CAPS_pubpropertyConnectorStartCap

Gets or sets a value that determines the shape that appears at the beginning of a connector.

System_CAPS_protpropertyContainingTheme

Gets the workflow theme that encapsulates the designer theme. (Inherited from DesignerTheme.)

System_CAPS_pubpropertyDesignerGeometry

Gets the geometry of the designer.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyDesignerImage

Gets the image associated with the designer.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyDesignerImagePath

Gets or sets the image path for the designer.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyDesignerType

Gets or sets the type of the designer associated with the designer theme.(Inherited from DesignerTheme.)

System_CAPS_pubpropertyExpandButtonSize

Gets the Size of the expand button on the composite activity designer.

System_CAPS_pubpropertyFont

Gets the font of the text used by the theme.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyForeColor

Gets or sets the color of the foreground.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyForegroundBrush

Gets the Brush object associated with the theme.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyForegroundPen

Gets the Pen used for painting the foreground of the theme.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyImageSize

Gets the size of the image of the theme.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyReadOnly

Gets a value that indicates whether the designer theme is read-only. (Inherited from DesignerTheme.)

System_CAPS_pubpropertyShowDropShadow

Gets or sets a value indicating whether the composite designer theme will display drop shadows around the composite activity designer.

System_CAPS_pubpropertySize

Gets the size of the designer.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubpropertyWatermarkAlignment

Gets or sets the alignment of the watermark image in the CompositeActivityDesigner.

System_CAPS_pubpropertyWatermarkImage

Gets the watermark image to use on the composite activity designer.

System_CAPS_pubpropertyWatermarkImagePath

Gets or sets the relative path to the watermark image to use on the composite activity designer.

NameDescription
System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the CompositeDesignerTheme and optionally releases the managed resources. (Overrides ActivityDesignerTheme.Dispose(Boolean).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows the DesignerTheme to attempt to free resources and perform other clean-up operations before it is reclaimed by garbage collection.(Inherited from DesignerTheme.)

System_CAPS_pubmethodGetBackgroundBrush(Rectangle)

Gets a brush used to paint the area specified by the rectangle passed.(Inherited from ActivityDesignerTheme.)

System_CAPS_pubmethodGetExpandButtonBackgroundBrush(Rectangle)

Retrieves a brush that defines the background display properties of the expand button on the composite activity designer.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitialize()

Performs further initialization tasks beyond those provided by the CompositeDesignerTheme constructor.(Overrides ActivityDesignerTheme.Initialize().)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodOnAmbientPropertyChanged(AmbientProperty)

Notifies the CompositeDesignerTheme object that the ambient property settings for the designer have changed. (Overrides ActivityDesignerTheme.OnAmbientPropertyChanged(AmbientProperty).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDisposable.Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from DesignerTheme.)

System_CAPS_noteNote

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

The CompositeDesignerTheme class controls the look and feel of a CompositeActivityDesigner object on a workflow design surface.

The following example shows how to create a custom CompositeDesignerTheme by deriving from the CompositeDesignerTheme class and setting the appropriate properties for the new theme.

public class ParallelIfTheme : CompositeDesignerTheme
{
    public ParallelIfTheme(WorkflowTheme theme)
        : base(theme)
    {
        this.ShowDropShadow = true;
        this.ConnectorStartCap = LineAnchor.None;
        this.ConnectorEndCap = LineAnchor.None;
        this.BorderStyle = DashStyle.Dash;
        this.WatermarkImagePath = @"parallelIfWatermark.png";
        this.WatermarkAlignment = DesignerContentAlignment.Fill;
    }
}

To use the theme on a CompositeActivityDesigner, apply the ActivityDesignerThemeAttribute to the CompositeActivityDesigner class.

[ActivityDesignerTheme(typeof(ParallelIfTheme))]
public class ParallelIfDesigner : ParallelActivityDesigner

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: