Table of Contents

Class Placeholder

Namespace
Northwoods.Go
Assembly
Northwoods.GoDiagram.WinForms.dll

If a Placeholder is in the visual tree of a Group, it represents the area of all of the member Parts of that Group. If a Placeholder is in the visual tree of an Adornment, it represents the area of the AdornedElement.

public class Placeholder : GraphObject, IHasContextMenu, IHasToolTip
Inheritance
Placeholder
Implements
Inherited Members

Remarks

Unlike other GraphObjects, the Placeholder measures itself based on these criteria, and not on its own DesiredSize or Scale. It will set its own natural bounds and scale, and in the case of Groups will set the Group's location.

It can only be used in the visual tree of a Group node or an Adornment. There can be at most one Placeholder in a Group or an Adornment.

See the documentation for Group and Adornment for descriptions of the Placeholder roles in each.

Constructors

Placeholder()

This normally does not need any initialization, except for maybe setting Padding.

public Placeholder()

Properties

Padding

Gets or sets the padding around the members of the Group or around the AdornedElement GraphObject.

public Margin Padding { get; set; }

Property Value

Margin

Remarks

The initial value is a Margin of zero on all sides.