Skip to content

Panel

Summary

Provides a base class for all Panel elements. Use Panel elements to position and arrange child objects.

Signature

1
public abstract class Panel : ControlBase

Namespace

cAlgo.API

Methods

AddChild

Summary

Adds the child element.

Signature

1
public void AddChild(ControlBase child)

Parameters

Name Type Description
child ControlBase The child.

Return Value

void

RemoveChild

Summary

Removes the child element.

Signature

1
public void RemoveChild(ControlBase child)

Parameters

Name Type Description
child ControlBase The child.

Return Value

void

HasChild

Summary

Returns True if panel has passed child otherwise false.

Remarks

Use this method for child lookup instead of slow Linq Contains against Children property.

Signature

1
public bool HasChild(ControlBase child)

Parameters

Name Type Description
child ControlBase Child control

Return Value

bool

Properties

BackgroundColor

Summary

Gets or sets the color of the panel background.

Signature

1
public Color BackgroundColor {get; set;}

Return Value

Color

Children

Summary

Gets panel children.

Signature

1
public IEnumerable<ControlBase> Children {get;}

Return Value

IEnumerable

ChildCount

Summary

Gets count of panel children.

Signature

1
public int ChildCount {get;}

Return Value

int