Class Placeholder

GoDiagram®
v10.0.12
by Northwoods Software®

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.

Inheritance
Placeholder
Namespace: Northwoods.Go
Assembly: Northwoods.GoDiagram.Avalonia.dll
Syntax
public class Placeholder : GraphObject, IHasContextMenu, IHasToolTip
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.

Declaration
public Placeholder()

Properties

Padding

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

Declaration
public Margin Padding { get; set; }
Property Value
Type Description
Margin
Remarks

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

Implements