Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Unable to rotate Line shape in particular angle in PPT

$
0
0

I have created a Line shape in PPT but i am unable to rotate it in particular angle.

Below is code block

D.Outline outline = new D.Outline(
				new D.SolidFill(new D.RgbColorModelHex() { Val = lineColor.ToRGBHex() }),
				new D.PresetDash() { Val = D.PresetLineDashValues.Solid }) // solid line
			{
				Width = (Int32)(lineWidth * ShapeUtilites.EMUPerPoint),
				CapType = D.LineCapValues.Round,
				CompoundLineType = D.CompoundLineValues.Single,
				Alignment = D.PenAlignmentValues.Center,

			};


            shape.ShapeProperties.Append(
                new D.PresetGeometry(new D.AdjustValueList()) { Preset = D.ShapeTypeValues.Line },
                new D.NoFill(),
                outline,
                new D.EffectList());

			shape.NonVisualConnectionShapeProperties = new P.NonVisualConnectionShapeProperties(
				new P.NonVisualDrawingProperties() { Id = this.shapeId, Name = this.shapeName },
				new P.NonVisualConnectorShapeDrawingProperties(),
				new P.ApplicationNonVisualDrawingProperties());

Thanks

Ankur


Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>