TransferToGraphDrawer() public method

public TransferToGraphDrawer ( GraphDrawer graphDrawer ) : void
graphDrawer Smrf.NodeXL.Visualization.Wpf.GraphDrawer
return void
        CreateNodeXLVisual
        (
            GeneralUserSettings oGeneralUserSettings
        )
        {
            Debug.Assert(oGeneralUserSettings != null);
            AssertValid();

            NodeXLVisual oNodeXLVisual = new NodeXLVisual();

            GraphDrawer oGraphDrawer = oNodeXLVisual.GraphDrawer;

            VertexDrawer oVertexDrawer = oGraphDrawer.VertexDrawer;

            EdgeDrawer oEdgeDrawer = oGraphDrawer.EdgeDrawer;

            oGeneralUserSettings.TransferToGraphDrawer(oGraphDrawer);

            // Override some of the user's settings.

            oVertexDrawer.Shape  = VertexShape.Disk;
            oVertexDrawer.Radius = 2.0;
            oEdgeDrawer.Width    = 1;

            return(oNodeXLVisual);
        }
    CreateNodeXLVisual
    (
        GeneralUserSettings oGeneralUserSettings
    )
    {
        Debug.Assert(oGeneralUserSettings != null);
        AssertValid();

        NodeXLVisual oNodeXLVisual = new NodeXLVisual();

        GraphDrawer oGraphDrawer = oNodeXLVisual.GraphDrawer;

        VertexDrawer oVertexDrawer = oGraphDrawer.VertexDrawer;

        EdgeDrawer oEdgeDrawer = oGraphDrawer.EdgeDrawer;

        oGeneralUserSettings.TransferToGraphDrawer(oGraphDrawer);

        // Override some of the user's settings.

        oVertexDrawer.Shape = VertexShape.Disk;
        oVertexDrawer.Radius = 2.0;
        oEdgeDrawer.Width = 1;

        return (oNodeXLVisual);
    }