Smrf.NodeXL.Visualization.Wpf.VertexDrawer.GetShape C# (CSharp) Method

GetShape() protected method

protected GetShape ( IVertex oVertex ) : VertexShape
oVertex IVertex
return VertexShape
    GetShape
    (
        IVertex oVertex
    )
    {
        Debug.Assert(oVertex != null);
        AssertValid();

        // Start with the default shape.

        VertexShape eShape = m_eShape;

        Object oPerVertexShapeAsObject;

        // Check for a per-vertex shape.

        if ( oVertex.TryGetValue(ReservedMetadataKeys.PerVertexShape,
            typeof(VertexShape), out oPerVertexShapeAsObject) )
        {
            eShape = (VertexShape)oPerVertexShapeAsObject;
        }

        return (eShape);
    }