Search Results for

    Show / Hide Table of Contents

    Class Packer

    Represents a circle packing class.

    Inheritance
    System.Object
    Packer
    Namespace: CirclePacking
    Assembly: FastReport.BG.dll
    Syntax
    public class Packer

    Fields

    Chain

    Chain of outside objects.

    Declaration
    public readonly Chain Chain
    Field Value
    Type Description
    Chain

    Items

    List of items.

    Declaration
    public List<Circle> Items
    Field Value
    Type Description
    System.Collections.Generic.List<Circle>

    Properties

    Height

    Height of area.

    Declaration
    public double Height { get; set; }
    Property Value
    Type Description
    System.Double

    Left

    Left position of area.

    Declaration
    public double Left { get; set; }
    Property Value
    Type Description
    System.Double

    Side

    Side of the circle attachment.

    Declaration
    public Circle.AttachmentSide Side { get; set; }
    Property Value
    Type Description
    Circle.AttachmentSide

    Top

    Top position of area.

    Declaration
    public double Top { get; set; }
    Property Value
    Type Description
    System.Double

    Width

    Width of area.

    Declaration
    public double Width { get; set; }
    Property Value
    Type Description
    System.Double

    Methods

    Add(Circle)

    Adds the circle.

    Declaration
    public void Add(Circle circle)
    Parameters
    Type Name Description
    Circle circle

    Circle for adding.

    Add(Double)

    Adds the circle with value.

    Declaration
    public void Add(double value)
    Parameters
    Type Name Description
    System.Double value

    Value for adding.

    Add(Object, Double)

    Add a linked object with value.

    Declaration
    public void Add(object obj, double value)
    Parameters
    Type Name Description
    System.Object obj

    Linked object.

    System.Double value

    Value for visualization.

    Clear()

    Clears the packer.

    Declaration
    public void Clear()

    Init()

    Runs packing in rectangle area.

    Declaration
    public void Init()

    Init(Packer.AreaType, Packer.SortOrder)

    Runs packing in rectangle area.

    Declaration
    public void Init(Packer.AreaType area, Packer.SortOrder sortOrder = Packer.SortOrder.Descending)
    Parameters
    Type Name Description
    Packer.AreaType area

    Type of area.

    Packer.SortOrder sortOrder

    LoadValuesFromString(String)

    Loads values from comma-separated string.

    Declaration
    public void LoadValuesFromString(string s)
    Parameters
    Type Name Description
    System.String s

    String with comma-separated values.

    Update()

    Updates and rescale items for a rectangle area.

    Declaration
    public void Update()

    Update(Packer.AreaType)

    Updates and rescale items.

    Declaration
    public void Update(Packer.AreaType area)
    Parameters
    Type Name Description
    Packer.AreaType area

    Area type.

    Back to top © 2021-2022 Copyright Fast Reports Inc.