/// <summary> /// Cloning constructor. /// </summary> /// <param name="source">The source object from which to clone.</param> /// <param name="context">The cloning context object.</param> protected TextEditControlGraphic(TextEditControlGraphic source, ICloningContext context) : base(source, context) { context.CloneFields(source, this); }
private static IControlGraphic CreateTextAreaGraphic() { InvariantTextPrimitive textArea = new InvariantTextPrimitive(); TextEditControlGraphic controlGraphic = new TextEditControlGraphic(new MoveControlGraphic(textArea)); controlGraphic.DeleteOnEmpty = true; StandardStatefulGraphic statefulGraphic = new StandardStatefulGraphic(controlGraphic); statefulGraphic.State = statefulGraphic.CreateInactiveState(); ContextMenuControlGraphic contextGraphic = new ContextMenuControlGraphic(typeof (TextCalloutTool).FullName, "basicgraphic-menu", null, statefulGraphic); contextGraphic.Actions = new ToolSet(new GraphicToolExtensionPoint(), new GraphicToolContext(contextGraphic)).Actions; return contextGraphic; }
/// <summary> /// Cloning constructor. /// </summary> /// <param name="source">The source object from which to clone.</param> /// <param name="context">The cloning context object.</param> protected TextEditControlGraphic(TextEditControlGraphic source, ICloningContext context) : base(source, context) { context.CloneFields(source, this); }