internal override void restoreProperties(ItemProperties props) { TableProperties tprops = (TableProperties)props; caption = tprops.caption; captionColor = tprops.captionColor; captionFormat = tprops.captionFormat; captionHeight = tprops.captionHeight; cellBorders = tprops.cellBorders; columnWidth = tprops.columnWidth; currScrollRow = tprops.currScrollRow; linkStyle = tprops.linkStyle; picture = tprops.picture; picturePos = tprops.picturePos; rowHeight = tprops.rowHeight; scrollable = tprops.scrollable; selStyle = tprops.selStyle; style = tprops.style; textColor = tprops.textColor; EnableStyledText = tprops.enableStyledText; customDraw = tprops.customDraw; cellCustomDraw = tprops.cellCustomDraw; if (captionBackBrush != tprops.captionBackBrush) { if (captionBackBrush != null) captionBackBrush.Release(); captionBackBrush = tprops.captionBackBrush; if (captionBackBrush != null) captionBackBrush.AddRef(); } base.restoreProperties(props); }
internal override void restoreProperties(ItemProperties props) { NodeProperties nprops = (NodeProperties)props; anchorPattern = nprops.anchorPattern; expanded = nprops.expanded; expandable = nprops.expandable; obstacle = nprops.obstacle; Constraints = nprops.contraints == null ? null : (NodeConstraints)nprops.contraints.Clone(); enabledHandles = nprops.enabledHandles; boolValues = nprops.boolValues; base.restoreProperties(props); }
internal override void saveProperties(ItemProperties props) { base.saveProperties(props); TableProperties tprops = (TableProperties)props; tprops.caption = caption; tprops.captionColor = captionColor; tprops.captionFormat = captionFormat; tprops.captionHeight = captionHeight; tprops.cellBorders = cellBorders; tprops.columnWidth = columnWidth; tprops.currScrollRow = currScrollRow; tprops.linkStyle = linkStyle; tprops.picture = picture; tprops.picturePos = picturePos; tprops.rowHeight = rowHeight; tprops.scrollable = scrollable; tprops.selStyle = selStyle; tprops.style = style; tprops.textColor = textColor; tprops.enableStyledText = EnableStyledText; tprops.customDraw = customDraw; tprops.cellCustomDraw = cellCustomDraw; if (tprops.captionBackBrush != null) tprops.captionBackBrush.Release(); tprops.captionBackBrush = captionBackBrush; if (tprops.captionBackBrush != null) tprops.captionBackBrush.AddRef(); }
internal override void restoreProperties(ItemProperties props) { ControlHostProperties hprops = (ControlHostProperties)props; Control = hprops.control; ctrlMouseAction = hprops.ctrlMouseAction; selStyle = hprops.selStyle; base.restoreProperties(props); }
internal override void saveProperties(ItemProperties props) { base.saveProperties(props); NodeProperties nprops = (NodeProperties)props; nprops.anchorPattern = anchorPattern; nprops.expanded = expanded; nprops.expandable = expandable; nprops.obstacle = obstacle; nprops.contraints = (NodeConstraints)constraints.Clone(); nprops.enabledHandles = enabledHandles; nprops.boolValues = boolValues; }
internal virtual void restoreProperties(ItemProperties props) { fillColor = props.fillColor; frameColor = props.frameColor; ignoreLayout = props.ignoreLayout; invisible = props.invisible; locked = props.locked; penDashStyle = props.penDashStyle; penWidth = props.penWidth; shadowColor = props.shadowColor; shadowOffsetX = props.shadowOffsetX; shadowOffsetY = props.shadowOffsetY; tag = props.tag; toolTip = props.toolTip; pen = (Pen)props.pen.Clone(); brush.Release(); brush = props.brush; brush.AddRef(); printable = props.printable; weight = props.weight; hyperLink = props.hyperLink; restoreState(props.itemState); }
internal override void saveProperties(ItemProperties props) { base.saveProperties(props); ControlHostProperties hprops = (ControlHostProperties)props; hprops.control = Control; hprops.ctrlMouseAction = ctrlMouseAction; hprops.selStyle = selStyle; }
internal virtual void saveProperties(ItemProperties props) { props.itemState = createState(); saveState(props.itemState); props.fillColor = fillColor; props.frameColor = frameColor; props.ignoreLayout = ignoreLayout; props.invisible = invisible; props.locked = locked; props.penDashStyle = penDashStyle; props.penWidth = penWidth; props.shadowColor = shadowColor; props.shadowOffsetX = shadowOffsetX; props.shadowOffsetY = shadowOffsetY; props.tag = tag; props.toolTip = toolTip; props.pen = (Pen)pen.Clone(); props.brush = brush; props.brush.AddRef(); props.printable = printable; props.weight = weight; props.hyperLink = hyperLink; }
internal override void restoreProperties(ItemProperties props) { ArrowProperties aprops = (ArrowProperties)props; allowMoveStart = aprops.allowMoveStart; allowMoveEnd = aprops.allowMoveEnd; ArrowHead = aprops.arrowHead; ArrowBase = aprops.arrowBase; IntermArrowHead = aprops.arrowInterm; autoRoute = aprops.autoRoute; dynamic = aprops.dynamic; ArrowHeadSize = aprops.headSize; ArrowBaseSize = aprops.baseSize; IntermHeadSize = aprops.intermSize; penColor = aprops.penColor; cascadeOrientation = aprops.cascadeOrientation; retainForm = aprops.retainForm; text = aprops.text; textColor = aprops.textColor; textStyle = aprops.textStyle; customDraw = aprops.customDraw; snapToNodeBorder = aprops.snapToNodeBorder; selStyle = aprops.selStyle; drawCrossings = aprops.drawCrossings; headPen = (MindFusion.FlowChartX.Pen)aprops.headPen.Clone(); base.restoreProperties(props); }
internal override void saveProperties(ItemProperties props) { base.saveProperties(props); ArrowProperties aprops = (ArrowProperties)props; aprops.allowMoveStart = allowMoveStart; aprops.allowMoveEnd = allowMoveEnd; aprops.arrowHead = arrowHead; aprops.arrowBase = arrowBase; aprops.arrowInterm = arrowInterm; aprops.autoRoute = autoRoute; aprops.dynamic = dynamic; aprops.headSize = headSize; aprops.baseSize = baseSize; aprops.intermSize = intermSize; aprops.penColor = penColor; aprops.cascadeOrientation = cascadeOrientation; aprops.retainForm = retainForm; aprops.text = text; aprops.textColor = textColor; aprops.textStyle = textStyle; aprops.customDraw = customDraw; aprops.snapToNodeBorder = snapToNodeBorder; aprops.selStyle = selStyle; aprops.drawCrossings = drawCrossings; aprops.headPen = (MindFusion.FlowChartX.Pen)headPen.Clone(); }
internal override void restoreProperties(ItemProperties props) { BoxProperties bprops = (BoxProperties)props; customDraw = bprops.customDraw; image = bprops.image; picturePos = bprops.picturePos; selStyle = bprops.selStyle; text = bprops.text; textColor = bprops.textColor; textFormat = bprops.textFormat; transparent = bprops.transparent; Style = bprops.style; ShapeOrientation = bprops.shapeRotation; Shape = bprops.shapeTemplate; PolyTextLayout = bprops.usePolyTextLt; EnableStyledText = bprops.useStyledText; base.restoreProperties(props); }
internal override void saveProperties(ItemProperties props) { base.saveProperties(props); BoxProperties bprops = (BoxProperties)props; bprops.customDraw = customDraw; bprops.image = image; bprops.picturePos = picturePos; bprops.selStyle = selStyle; bprops.shapeRotation = shapeRotation; bprops.shapeTemplate = shapeTemplate; bprops.style = style; bprops.text = text; bprops.textColor = textColor; bprops.textFormat = textFormat; bprops.transparent = transparent; bprops.usePolyTextLt = useTextLayout; bprops.useStyledText = useStyledText; }