Search Results for

    Show / Hide Table of Contents

    Class SelectedComponents

    Holds the list of ComponentBase objects currently selected in the designer.

    Inheritance
    System.Object
    SelectedComponents
    Namespace: FastReport
    Assembly: FastReport.dll
    Syntax
    public class SelectedComponents
    Remarks

    This class is used by the "Alignment" toolbar. Use methods of this class to perform some operations on the selected objects.

    Note: after calling any method in this class, call the Designer.SetModified method to reflect changes.

    Note: this list contains only objects of ComponentBase type. If you want to access all selected objects, use the SelectedObjects property.

    Properties

    Count

    Gets the number of selected objects.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    First

    Gets the first selected object.

    Declaration
    public ComponentBase First { get; }
    Property Value
    Type Description
    ComponentBase

    Methods

    AlignBottom(Object, EventArgs)

    Aligns bottom edges of the selected objects.

    Declaration
    public void AlignBottom(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    AlignCenter(Object, EventArgs)

    Aligns centers of the selected objects.

    Declaration
    public void AlignCenter(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    AlignLeft(Object, EventArgs)

    Aligns left edges of the selected objects.

    Declaration
    public void AlignLeft(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    AlignMiddle(Object, EventArgs)

    Aligns middles of the selected objects.

    Declaration
    public void AlignMiddle(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    AlignRight(Object, EventArgs)

    Aligns right edges of the selected objects.

    Declaration
    public void AlignRight(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    AlignToGrid(Object, EventArgs)

    Aligns the selected objects to the grid.

    Declaration
    public void AlignToGrid(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    AlignTop(Object, EventArgs)

    Aligns top edges of the selected objects.

    Declaration
    public void AlignTop(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    CenterHorizontally(Object, EventArgs)

    Centers the selected objects horizontally.

    Declaration
    public void CenterHorizontally(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    CenterVertically(Object, EventArgs)

    Centers the selected objects vertically.

    Declaration
    public void CenterVertically(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    DecreaseHorizontalSpacing(Object, EventArgs)

    Decreases horizontal spacing between the selected objects.

    Declaration
    public void DecreaseHorizontalSpacing(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    DecreaseVerticalSpacing(Object, EventArgs)

    Decreases vertical spacing between the selected objects.

    Declaration
    public void DecreaseVerticalSpacing(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    IncreaseHorizontalSpacing(Object, EventArgs)

    Increases horizontal spacing between the selected objects.

    Declaration
    public void IncreaseHorizontalSpacing(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    IncreaseVerticalSpacing(Object, EventArgs)

    Increases vertical spacing between the selected objects.

    Declaration
    public void IncreaseVerticalSpacing(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    RemoveHorizontalSpacing(Object, EventArgs)

    Removes horizontal spacing between the selected objects.

    Declaration
    public void RemoveHorizontalSpacing(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    RemoveVerticalSpacing(Object, EventArgs)

    Removes vertical spacing between the selected objects.

    Declaration
    public void RemoveVerticalSpacing(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    SameHeight(Object, EventArgs)

    Makes the selected objects the same height as the first object.

    Declaration
    public void SameHeight(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    SameSize(Object, EventArgs)

    Makes the selected objects the same size as the first object.

    Declaration
    public void SameSize(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    SameWidth(Object, EventArgs)

    Makes the selected objects the same width as the first object.

    Declaration
    public void SameWidth(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    SizeToGrid(Object, EventArgs)

    Adjusts the size of selected objects to the grid.

    Declaration
    public void SizeToGrid(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    SpaceHorizontally(Object, EventArgs)

    Spaces the selected objects horizontally.

    Declaration
    public void SpaceHorizontally(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e

    SpaceVertically(Object, EventArgs)

    Spaces the selected objects vertically.

    Declaration
    public void SpaceVertically(object sender = null, EventArgs e = null)
    Parameters
    Type Name Description
    System.Object sender
    System.EventArgs e
    Back to top © 1998-2025 Copyright Fast Reports Inc.