public override bool Contain(object data) { TpPenStyle st = data as TpPenStyle; if (st != null) { return(style.isEqual((TpPenStyle)data)); } else { return(style.style == (DashStyle)data); } }
public TpLineStyleItem(DashStyle _style) { style = new TpPenStyle(_style, LineCap.Flat, LineCap.Flat); }
public TpLineStyleItem(TpPenStyle _style) { style = _style; }
public bool isEqual(TpPenStyle st) { return(style == st.style && beginCap == st.beginCap && endCap == st.endCap); }
public bool isEqual(TpPenStyle st) { return style == st.style && beginCap == st.beginCap && endCap == st.endCap; }