xLayerPropSet.setPropertyValue( "Name", "NotEditable" );
xLayerPropSet.setPropertyValue( "IsVisible", new Boolean( true ) );
xLayerPropSet.setPropertyValue( "IsLocked", new Boolean( true ) );
// attach the layer to the rectangles
xLayerManager.attachShapeToLayer( xRect1, xNotVisibleAndEditable );
xLayerManager.attachShapeToLayer( xRect2, xNotEditable );
}
catch( Exception ex )
{