GemBox.Presentation
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    Connection Class

    Namespace:
    GemBox.Presentation
    Assembly:
    GemBox.Presentation.dll

    Represents the connection that should be made by the corresponding connector shape. This connects the head or the tail of the connector to some other drawing.

    • C#
    • VB.NET
    public sealed class Connection
    Public NotInheritable Class Connection
    Inheritance:
    System.Object
    Connection

    Properties

    Drawing

    Gets the drawing to make the final connection to.

    • C#
    • VB.NET
    public VisualDrawing Drawing { get; }
    Public ReadOnly Property Drawing As VisualDrawing
    Property Value
    VisualDrawing

    The drawing to make the final connection to.

    SiteIndex

    Gets the index into the connection site table of the Drawing associated with this connection. There are many connection sites on a shape and this property specifies which connection site will be used for this connection.

    • C#
    • VB.NET
    public int SiteIndex { get; }
    Public ReadOnly Property SiteIndex As Integer
    Property Value
    System.Int32

    The index into the connection site table of the Drawing associated with this connection.

    Methods

    Set(VisualDrawing, Int32)

    Sets the connection to the specified drawing and specified connection site on it.

    • C#
    • VB.NET
    public void Set(VisualDrawing drawing, int siteIndex)
    Public Sub Set(drawing As VisualDrawing, siteIndex As Integer)
    Parameters
    drawing
    VisualDrawing

    The drawing to make the final connection to.

    siteIndex
    System.Int32

    The index into the connection site table of the drawing.

    Exceptions
    System.ArgumentException

    Specified drawing is not on the same slide as the connector that should connect it.

    System.ArgumentOutOfRangeException

    Parameter siteIndex is less than 0.

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.