public static Create ( ShapeStateFlags flags = ShapeStateFlags.Default ) : |
||
flags | ShapeStateFlags | The state flags. |
리턴 |
/// <summary> /// Initializes a new instance of the <see cref="BaseShape"/> class. /// </summary> public BaseShape() : base() { State = ShapeState.Create(ShapeStateFlags.Visible | ShapeStateFlags.Printable | ShapeStateFlags.Standalone); Transform = MatrixObject.Create(); Data = Context.Create(); }
/// <summary> /// Parses a shape state string. /// </summary> /// <param name="s">The shape state string.</param> /// <returns>The <see cref="ShapeState"/>.</returns> public static ShapeState Parse(string s) { var flags = (ShapeStateFlags)Enum.Parse(typeof(ShapeStateFlags), s, true); return(ShapeState.Create(flags)); }
/// <summary> /// Initializes a new instance of the <see cref="BaseShape"/> class. /// </summary> public BaseShape() : base() { State = ShapeState.Create(ShapeStateFlags.Visible | ShapeStateFlags.Printable | ShapeStateFlags.Standalone); Data = XContext.Create(); }