private void InternalSelectObject(EmfStockObject stockObject) { switch (stockObject) { case EmfStockObject.BLACK_BRUSH: _brush = new SolidBrush(Color.Black); break; case EmfStockObject.DC_BRUSH: throw new NotImplementedException(); case EmfStockObject.DKGRAY_BRUSH: _brush = new SolidBrush(Color.DarkGray); break; case EmfStockObject.GRAY_BRUSH: _brush = new SolidBrush(Color.Gray); break; case EmfStockObject.LTGRAY_BRUSH: _brush = new SolidBrush(Color.LightGray); break; case EmfStockObject.NULL_BRUSH: _brush = null; break; case EmfStockObject.WHITE_BRUSH: _brush = new SolidBrush(Color.White); break; } }
public ObjectHandle(EmfStockObject stockObject) { _stockObject = stockObject; }
public ObjectHandle(EmfStockObject stockObject) => _stockObject = stockObject;