public EmfPlusCustomLineCapDataBase(CustomLineCapDataType type) { CustomLineCapType = type; }
public static EmfPlusCustomLineCapDataBase GetCustomLineCapData(MetafileReader reader, CustomLineCapDataType type) { EmfPlusCustomLineCapDataBase data; switch (type) { case CustomLineCapDataType.Default: data = new EmfPlusCustomLineCapData(reader); break; case CustomLineCapDataType.AdjustableArrow: data = new EmfPlusCustomLineCapArrowData(reader); break; default: throw new InvalidOperationException($"Unknown custom line cap type {type}."); } return(data); }