Exemple #1
0
        public TFluent SetStrokeDash(PresetLineDashValues value)
        {
            Outline outline = this.outlineGenerator(true);

            this.InitializeOutline(outline);

            outline.RemoveAllChildren <PresetDash>();
            outline.RemoveAllChildren <CustomDash>();

            outline.AppendChild(new PresetDash()
            {
                Val = value
            });

            return(this.result);
        }
        public TFluent SetStrokeDash(PresetLineDashValues value)
        {
            OpenXmlElement shapeProperties = this.element.GetOrCreateShapeProperties();
            Outline        outline         = shapeProperties.GetFirstChild <Outline>() ?? shapeProperties.AppendChild(new Outline()
            {
                Width = 12700
            });

            outline.RemoveAllChildren <PresetDash>();
            outline.RemoveAllChildren <CustomDash>();

            outline.AppendChild(new PresetDash()
            {
                Val = value
            });

            return(this.result);
        }