Table of Contents

Class PanelLayoutTableRow

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

Organizational Panel type that is only valid inside of a Table panel; this Panel ignores its angle and scale, and does not have a meaningful size on its own, it is only an organizational container for other elements of a Panel.

public sealed class PanelLayoutTableRow : PanelLayout
Inheritance
PanelLayoutTableRow
Inherited Members

Properties

Instance

This holds a static singleton instances of the PanelLayout, used as values for Type.

public static PanelLayoutTableRow Instance { get; }

Property Value

PanelLayoutTableRow

Remarks

These static PanelLayouts are used when defining templates:

// define a simple Node template
myDiagram.NodeTemplate =
  new Node(PanelLayoutAuto.Instance)  // the Shape will go around the TextBlock
    .Add(
      new Shape("RoundedRectangle") {
        StrokeWidth = 0, Fill = "white"
      }.Bind("Fill", "Color"),  // Shape.Fill is bound to Node.Data.Color
      new TextBlock {
        Margin = 8,  // Specify a margin to add some room around the text
        Font = "bold 14px sans-serif", Stroke = "#333"
      }.Bind("Text", "Key")  // TextBlock.Text is bound to Node.Data.Key
    );

Methods

Arrange(Panel, IList<GraphObject>, Rect)

public override void Arrange(Panel panel, IList<GraphObject> children, Rect union)

Parameters

panel Panel
children IList<GraphObject>
union Rect

Measure(Panel, double, double, IList<GraphObject>, ref Rect, double, double)

public override void Measure(Panel panel, double width, double height, IList<GraphObject> children, ref Rect union, double minw, double minh)

Parameters

panel Panel
width double
height double
children IList<GraphObject>
union Rect
minw double
minh double