ScaleX

We found 10 examples in language CSharp for this search. You will see 55 fragments of code.

        double CalculateScaleX(Size finalSize)
        {
            double MaxWidth = GetMaxWidth();
            double scaleX = MaxWidth > 0 ? Math.Min(1, finalSize.Width / MaxWidth) : 1.0;
            if (double.IsPositiveInfinity(scaleX)) scaleX = 1.0;
            return scaleX;
        }


	// Use this for initialization
	void Start () {
		//patterns = new List<Pattern> ();
		points = new List<Vector2> ();
		holes = new List<List<Vector2>> ();

		InitShirt (scaleX, scaleY);
		//patterns.Add (InitShirt ());
		//patterns.Add (InitSleeve (scaleX,scaleY));

	}

	// Update is called once per frame
	void Update () {
		if (Input.GetButtonUp ("Predefined Shirt")) {
			ModelSleeve ();
			ModelShirt ();
		}
	}

	public void ModelSleeve(){
		InitSleeve (scaleX, scaleY);
		clothModelHandler.AddClothModel (Vector3.zero, this);
	}

	public void ModelShirt(){
		InitShirt (scaleX, scaleY);
		clothModelHandler.AddClothModel (Vector3.zero, this);
	}

	public void TriangulateSleeve(){
		InitSleeve (scaleX, scaleY);
		triangulator.Triangulate (this);
	}

	/*private Pattern InitShirt(){
		points.Clear ();
		holes.Clear ();

		points.Add (new Vector2 (0, 0));
		points.Add (new Vector2 (0, 10));
		points.Add (new Vector2 (-3, 8));
		points.Add (new Vector2 (-5, 12));
		points.Add (new Vector2 (0, 15));
		points.Add (new Vector2 (1, 15));
		points.Add (new Vector2 (4, 12));
		points.Add (new Vector2 (7, 15));
		points.Add (new Vector2 (8, 15));
		points.Add (new Vector2 (13, 12));
		points.Add (new Vector2 (11, 8));
		points.Add (new Vector2 (8, 10));
		points.Add (new Vector2 (8, 0));

		return new Pattern (points);

	}*/

	private Pattern InitSleeve(float scaleX,float scaleY){
		points.Clear ();
		holes.Clear ();

		points.Add (new Vector2 (0*scaleX, 0*scaleY));
		points.Add (new Vector2 (18*scaleX, 0*scaleY));
		points.Add (new Vector2 (17.5f*scaleX, 1*scaleY));
		points.Add (new Vector2 (16.5f*scaleX, 2*scaleY));
		points.Add (new Vector2 (15*scaleX, 3*scaleY));
		points.Add (new Vector2 (13.5f*scaleX, 4*scaleY));
		points.Add (new Vector2 (12.5f*scaleX, 5*scaleY));
		points.Add (new Vector2 (12*scaleX, 6*scaleY));
		points.Add (new Vector2 (0*scaleX, 5*scaleY));

		return new Pattern (points);
	}


        public Matrix Clone()
        {
            return new Matrix(this.ScaleX, this.Rotate0, this.Rotate1, this.ScaleY, this.TranslateX, this.TranslateY);
        }

        public bool HasScaleOrRotation()
        {
            return ScaleX != 1 || Rotate0 != 0 || Rotate1 != 0 || ScaleY != 1;
        }

        public System.Drawing.Drawing2D.Matrix GetDrawing2DMatrix()
        {
            return new System.Drawing.Drawing2D.Matrix(
                this.ScaleX,
                this.Rotate0,
                this.Rotate1,
                this.ScaleY,
                this.TranslateX,
                this.TranslateY);
        }
		public MatrixComponents GetMatrixComponents()
		{
			System.Drawing.Drawing2D.Matrix srcMatrix = new System.Drawing.Drawing2D.Matrix(
				this.ScaleX,
				this.Rotate0,
				this.Rotate1,
				this.ScaleY,
				this.TranslateX,
				this.TranslateY);
			System.Drawing.Drawing2D.Matrix m = new System.Drawing.Drawing2D.Matrix(1, 0, 0, 1, 0, 0); // identity
			// an 'identity' box
			PointF[] modPts = new PointF[]{	new PointF(0,0),
											new PointF(1,0),
											new PointF(1,1),
											new PointF(0,1) };

			float sx, sy, rot, shear, tx, ty;

			srcMatrix.TransformPoints(modPts);

			// translation
			tx = srcMatrix.OffsetX;
			ty = srcMatrix.OffsetY;
			m.Translate(-tx, -ty);
			m.TransformPoints(modPts);
			m.Reset();

			// rotation
			rot = (float)Math.Atan2(modPts[1].Y, modPts[1].X); // x axis
			rot = (float)(rot / Math.PI * 180);
			if (rot == -0) rot = 0;
			if (rot == -180) rot = 180;
			m.Rotate(-1 * rot);
			m.TransformPoints(modPts);
			m.Reset();

            // scale
            //sx = Dist(modPts[0], modPts[3]); // bug it seems..?
            sx = Dist(modPts[0], modPts[1]);
			sy = Dist(modPts[0], new PointF(0, modPts[3].Y));
			if (modPts[0].Y > modPts[3].Y)
			{
				sy *= -1;
			}
			m.Scale(1 / sx, 1 / sy);
			m.TransformPoints(modPts);
			m.Reset();

			// skew
			// ySkew is impossible at this rotation
			shear = modPts[3].X / Dist(modPts[0], modPts[1]);
			// rounding
			shear = Math.Abs(shear) < 0.001 ? 0 : shear;
			m.Shear(-shear, 0);
			m.TransformPoints(modPts);

			m.Dispose();
			srcMatrix.Dispose();

			return new MatrixComponents(sx, sy, rot, shear, tx, ty);
		}

		private float Dist(PointF a, PointF b)
		{
			float dx = b.X - a.X;
			float dy = b.Y - a.Y;
			return (float)Math.Sqrt(dx * dx + dy * dy);
		}

		public void Translate(float offsetX, float offsetY)
		{
            TranslateX += offsetX;
            TranslateY += offsetY;
		}


        protected override void OnNavigatedTo(NavigationEventArgs e)
        {

            txtNomeAluno.Text = aluno.Nome;
            displayRatingStar();            
        }


        private void star5_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            rating = 5;
            displayRatingStar();
        }

        private void star4_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            rating = 4;
            displayRatingStar();
        }

        private void star3_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            rating = 3;
            displayRatingStar();
        }

        private void star1_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            rating = 1;
            displayRatingStar();
        }

        private void star2_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            rating = 2;
            displayRatingStar();
        }


        protected override void Init()
        {
            _default = new GearSizeValue(_owner.width, _owner.height, _owner.scaleX, _owner.scaleY);
            _storage = new Dictionary<string, GearSizeValue>();
        }

        override protected void AddStatus(string pageId, ByteBuffer buffer)
        {
            GearSizeValue gv;
            if (pageId == null)
                gv = _default;
            else
            {
                gv = new GearSizeValue(0, 0, 1, 1);
                _storage[pageId] = gv;
            }

            gv.width = buffer.ReadInt();
            gv.height = buffer.ReadInt();
            gv.scaleX = buffer.ReadFloat();
            gv.scaleY = buffer.ReadFloat();
        }

        override public void Apply()
        {
            GearSizeValue gv;
            if (!_storage.TryGetValue(_controller.selectedPageId, out gv))
                gv = _default;

            if (_tweenConfig != null && _tweenConfig.tween && UIPackage._constructing == 0 && !disableAllTweenEffect)
            {
                if (_tweenConfig._tweener != null)
                {
                    if (_tweenConfig._tweener.endValue.x != gv.width || _tweenConfig._tweener.endValue.y != gv.height
                        || _tweenConfig._tweener.endValue.z != gv.scaleX || _tweenConfig._tweener.endValue.w != gv.scaleY)
                    {
                        _tweenConfig._tweener.Kill(true);
                        _tweenConfig._tweener = null;
                    }
                    else
                        return;
                }

                bool a = gv.width != _owner.width || gv.height != _owner.height;
                bool b = gv.scaleX != _owner.scaleX || gv.scaleY != _owner.scaleY;
                if (a || b)
                {
                    if (_owner.CheckGearController(0, _controller))
                        _tweenConfig._displayLockToken = _owner.AddDisplayLock();

                    _tweenConfig._tweener = GTween.To(new Vector4(_owner.width, _owner.height, _owner.scaleX, _owner.scaleY),
                        new Vector4(gv.width, gv.height, gv.scaleX, gv.scaleY), _tweenConfig.duration)
                        .SetDelay(_tweenConfig.delay)
                        .SetEase(_tweenConfig.easeType)
                        .SetUserData((a ? 1 : 0) + (b ? 2 : 0))
                        .SetTarget(this)
                        .SetListener(this);
                }
            }
            else
            {
                _owner._gearLocked = true;
                _owner.SetSize(gv.width, gv.height, _owner.CheckGearController(1, _controller));
                _owner.SetScale(gv.scaleX, gv.scaleY);
                _owner._gearLocked = false;
            }
        }

        public void OnTweenStart(GTweener tweener)
        {
        }

        public void OnTweenUpdate(GTweener tweener)
        {
            _owner._gearLocked = true;
            int flag = (int)tweener.userData;
            if ((flag & 1) != 0)
                _owner.SetSize(tweener.value.x, tweener.value.y, _owner.CheckGearController(1, _controller));
            if ((flag & 2) != 0)
                _owner.SetScale(tweener.value.z, tweener.value.w);
            _owner._gearLocked = false;

            _owner.InvalidateBatchingState();
        }

        public void OnTweenComplete(GTweener tweener)
        {
            _tweenConfig._tweener = null;
            if (_tweenConfig._displayLockToken != 0)
            {
                _owner.ReleaseDisplayLock(_tweenConfig._displayLockToken);
                _tweenConfig._displayLockToken = 0;
            }
            _owner.DispatchEvent("onGearStop", this);
        }


        public Matrix Clone()
        {
            return new Matrix(this.ScaleX, this.Rotate0, this.Rotate1, this.ScaleY, this.TranslateX, this.TranslateY);
        }

        public bool HasScaleOrRotation()
        {
            return ScaleX != 1 || Rotate0 != 0 || Rotate1 != 0 || ScaleY != 1;
        }

        public System.Drawing.Drawing2D.Matrix GetDrawing2DMatrix()
        {
            return new System.Drawing.Drawing2D.Matrix(
                this.ScaleX,
                this.Rotate0,
                this.Rotate1,
                this.ScaleY,
                this.TranslateX,
                this.TranslateY);
        }
		public MatrixComponents GetMatrixComponents()
		{
			System.Drawing.Drawing2D.Matrix srcMatrix = new System.Drawing.Drawing2D.Matrix(
				this.ScaleX,
				this.Rotate0,
				this.Rotate1,
				this.ScaleY,
				this.TranslateX,
				this.TranslateY);
			System.Drawing.Drawing2D.Matrix m = new System.Drawing.Drawing2D.Matrix(1, 0, 0, 1, 0, 0); // identity
			// an 'identity' box
			PointF[] modPts = new PointF[]{	new PointF(0,0),
											new PointF(1,0),
											new PointF(1,1),
											new PointF(0,1) };

			float sx, sy, rot, shear, tx, ty;

			srcMatrix.TransformPoints(modPts);

			// translation
			tx = srcMatrix.OffsetX;
			ty = srcMatrix.OffsetY;
			m.Translate(-tx, -ty);
			m.TransformPoints(modPts);
			m.Reset();

			// rotation
			rot = (float)Math.Atan2(modPts[1].Y, modPts[1].X); // x axis
			rot = (float)(rot / Math.PI * 180);
			if (rot == -0) rot = 0;
			if (rot == -180) rot = 180;
			m.Rotate(-1 * rot);
			m.TransformPoints(modPts);
			m.Reset();

            // scale
            //sx = Dist(modPts[0], modPts[3]); // bug it seems..?
            sx = Dist(modPts[0], modPts[1]);
			sy = Dist(modPts[0], new PointF(0, modPts[3].Y));
			if (modPts[0].Y > modPts[3].Y)
			{
				sy *= -1;
			}
			m.Scale(1 / sx, 1 / sy);
			m.TransformPoints(modPts);
			m.Reset();

			// skew
			// ySkew is impossible at this rotation
			shear = modPts[3].X / Dist(modPts[0], modPts[1]);
			// rounding
			shear = Math.Abs(shear) < 0.001 ? 0 : shear;
			m.Shear(-shear, 0);
			m.TransformPoints(modPts);

			m.Dispose();
			srcMatrix.Dispose();

			return new MatrixComponents(sx, sy, rot, shear, tx, ty);
		}

		private float Dist(PointF a, PointF b)
		{
			float dx = b.X - a.X;
			float dy = b.Y - a.Y;
			return (float)Math.Sqrt(dx * dx + dy * dy);
		}

		public void Translate(float offsetX, float offsetY)
		{
            TranslateX += offsetX;
            TranslateY += offsetY;
		}


		protected override void Init()
		{
			_default = new GearSizeValue(_owner.width, _owner.height, _owner.scaleX, _owner.scaleY);
			_storage = new Dictionary<string, GearSizeValue>();
		}

		override protected void AddStatus(string pageId, ByteBuffer buffer)
		{
			GearSizeValue gv;
			if (pageId == null)
				gv = _default;
			else
			{
				gv = new GearSizeValue(0, 0, 1, 1);
				_storage[pageId] = gv;
			}

			gv.width = buffer.ReadInt();
			gv.height = buffer.ReadInt();
			gv.scaleX = buffer.ReadFloat();
			gv.scaleY = buffer.ReadFloat();
		}

		override public void Apply()
		{
			GearSizeValue gv;
			if (!_storage.TryGetValue(_controller.selectedPageId, out gv))
				gv = _default;

			if (_tweenConfig != null && _tweenConfig.tween && UIPackage._constructing == 0 && !disableAllTweenEffect)
			{
				if (_tweenConfig._tweener != null)
				{
					if (_tweenConfig._tweener.endValue.x != gv.width || _tweenConfig._tweener.endValue.y != gv.height
						|| _tweenConfig._tweener.endValue.z != gv.scaleX || _tweenConfig._tweener.endValue.w != gv.scaleY)
					{
						_tweenConfig._tweener.Kill(true);
						_tweenConfig._tweener = null;
					}
					else
						return;
				}

				bool a = gv.width != _owner.width || gv.height != _owner.height;
				bool b = gv.scaleX != _owner.scaleX || gv.scaleY != _owner.scaleY;
				if (a || b)
				{
					if (_owner.CheckGearController(0, _controller))
						_tweenConfig._displayLockToken = _owner.AddDisplayLock();

					_tweenConfig._tweener = GTween.To(new Vector4(_owner.width, _owner.height, _owner.scaleX, _owner.scaleY),
						new Vector4(gv.width, gv.height, gv.scaleX, gv.scaleY), _tweenConfig.duration)
						.SetDelay(_tweenConfig.delay)
						.SetEase(_tweenConfig.easeType)
						.SetUserData((a ? 1 : 0) + (b ? 2 : 0))
						.SetTarget(this)
						.SetListener(this);
				}
			}
			else
			{
				_owner._gearLocked = true;
				_owner.SetSize(gv.width, gv.height, _owner.CheckGearController(1, _controller));
				_owner.SetScale(gv.scaleX, gv.scaleY);
				_owner._gearLocked = false;
			}
		}

		public void OnTweenStart(GTweener tweener)
		{
		}

		public void OnTweenUpdate(GTweener tweener)
		{
			_owner._gearLocked = true;
			int flag = (int)tweener.userData;
			if ((flag & 1) != 0)
				_owner.SetSize(tweener.value.x, tweener.value.y, _owner.CheckGearController(1, _controller));
			if ((flag & 2) != 0)
				_owner.SetScale(tweener.value.z, tweener.value.w);
			_owner._gearLocked = false;

			_owner.InvalidateBatchingState();
		}

		public void OnTweenComplete(GTweener tweener)
		{
			_tweenConfig._tweener = null;
			if (_tweenConfig._displayLockToken != 0)
			{
				_owner.ReleaseDisplayLock(_tweenConfig._displayLockToken);
				_tweenConfig._displayLockToken = 0;
			}
			_owner.OnGearStop.Call(this);
		}


        //private void retornaEstrela()
        //{
        //    //Se nao tiver aluno cadastrado da erro aqui, pois o idAluno é null.
            
        //    if(aluno != null)
        //    {
        //    estrela = Class.EstrelasDB.getEstrelas(aluno.IdAluno, disciplina.IdDisc);

        //    if (estrela.Count() == 0)
        //    {
        //        rating = 0;
        //    }
        //    else
        //    {
        //        objEstrela = estrela.ElementAt(0);
        //        rating = objEstrela.NEstrelas;
        //    }
        //    }
            
            
        //}

        

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if(aluno != null)
            {
            txtNomeAluno.Text = aluno.Nome;
            txtTitulo.Text = "STARS - " + disciplina.Nome;
            
            //mostrando quantas estrelas o aluno tem na pagina de adicionar estrela pro aluno.
            txtNEstrela.Text = aluno.NEstrelas.ToString();
            
            }
            
        }

        private void ApplicationBarIconButton_Click_1(object sender, EventArgs e)
        {
            novo();
            NavigationService.GoBack();
        }

        #region EventClick Stars

        private void star1_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            rating = 1;
            displayRatingStar();
        }

        private void star2_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            rating = 2;
            displayRatingStar();
        }

        private void star3_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            rating = 3;
            displayRatingStar();
        }

        private void star4_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            rating = 4;
            displayRatingStar();
        }


		protected override void Init()
		{
			_default = new GearSizeValue(_owner.width, _owner.height, _owner.scaleX, _owner.scaleY);
			_storage = new Dictionary<string, GearSizeValue>();
		}

		override protected void AddStatus(string pageId, ByteBuffer buffer)
		{
			GearSizeValue gv;
			if (pageId == null)
				gv = _default;
			else
			{
				gv = new GearSizeValue(0, 0, 1, 1);
				_storage[pageId] = gv;
			}

			gv.width = buffer.ReadInt();
			gv.height = buffer.ReadInt();
			gv.scaleX = buffer.ReadFloat();
			gv.scaleY = buffer.ReadFloat();
		}

		override public void Apply()
		{
			GearSizeValue gv;
			if (!_storage.TryGetValue(_controller.selectedPageId, out gv))
				gv = _default;

			if (_tweenConfig != null && _tweenConfig.tween && UIPackage._constructing == 0 && !disableAllTweenEffect)
			{
				if (_tweenConfig._tweener != null)
				{
					if (_tweenConfig._tweener.endValue.x != gv.width || _tweenConfig._tweener.endValue.y != gv.height
						|| _tweenConfig._tweener.endValue.z != gv.scaleX || _tweenConfig._tweener.endValue.w != gv.scaleY)
					{
						_tweenConfig._tweener.Kill(true);
						_tweenConfig._tweener = null;
					}
					else
						return;
				}

				bool a = gv.width != _owner.width || gv.height != _owner.height;
				bool b = gv.scaleX != _owner.scaleX || gv.scaleY != _owner.scaleY;
				if (a || b)
				{
					if (_owner.CheckGearController(0, _controller))
						_tweenConfig._displayLockToken = _owner.AddDisplayLock();

					_tweenConfig._tweener = GTween.To(new Vector4(_owner.width, _owner.height, _owner.scaleX, _owner.scaleY),
						new Vector4(gv.width, gv.height, gv.scaleX, gv.scaleY), _tweenConfig.duration)
						.SetDelay(_tweenConfig.delay)
						.SetEase(_tweenConfig.easeType)
						.SetUserData((a ? 1 : 0) + (b ? 2 : 0))
						.SetTarget(this)
						.SetListener(this);
				}
			}
			else
			{
				_owner._gearLocked = true;
				_owner.SetSize(gv.width, gv.height, _owner.CheckGearController(1, _controller));
				_owner.SetScale(gv.scaleX, gv.scaleY);
				_owner._gearLocked = false;
			}
		}

		public void OnTweenStart(GTweener tweener)
		{
		}

		public void OnTweenUpdate(GTweener tweener)
		{
			_owner._gearLocked = true;
			int flag = (int)tweener.userData;
			if ((flag & 1) != 0)
				_owner.SetSize(tweener.value.x, tweener.value.y, _owner.CheckGearController(1, _controller));
			if ((flag & 2) != 0)
				_owner.SetScale(tweener.value.z, tweener.value.w);
			_owner._gearLocked = false;

			_owner.InvalidateBatchingState();
		}

		public void OnTweenComplete(GTweener tweener)
		{
			_tweenConfig._tweener = null;
			if (_tweenConfig._displayLockToken != 0)
			{
				_owner.ReleaseDisplayLock(_tweenConfig._displayLockToken);
				_tweenConfig._displayLockToken = 0;
			}
			_owner.DispatchEvent("onGearStop", this);
		}


		protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
		{
			base.OnMouseLeftButtonDown(e);
			e.Handled = false;
		}

		public static Point Center(Rect rect)
		{
			return new Point(rect.Left + rect.Width / 2,
				rect.Top + rect.Height / 2);
		}

		private void _centerDrag_DragStarted(object sender, DragStartedEventArgs e)
		{
			Point pos = Mouse.GetPosition(AdornedElement);
			_dragStart = pos;
		}


		private void HandleCenterDrag(object sender, DragDeltaEventArgs e)
		{
			FrameworkElement el = AdornedElement as FrameworkElement;
			Point pos = Mouse.GetPosition(AdornedElement);
			
			var offset = new Point(pos.X - _dragStart.X, pos.Y - _dragStart.Y);
			_dragStart = pos;

			if (Bounds.Left + offset.X > 0 && Bounds.Right + offset.X < el.ActualWidth &&
				Bounds.Top + offset.Y > 0 && Bounds.Bottom + offset.Y < el.ActualHeight)
			{
				var transform = new TranslateTransform(offset.X, offset.Y);
				MoveTransformItems(transform);
			}
		}

		// Handler for resizing from the bottom-right.
		private void HandleBottomRight(object sender, DragDeltaEventArgs args)
		{
			var scaleY = args.VerticalChange / Bounds.Height;
			var scaleX = args.HorizontalChange / Bounds.Width;

			scaleY += 1;
			scaleX += 1;

			if (Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift))
			{
				scaleX = scaleY = Math.Max(scaleX, scaleY);
			}

			if (EnforceSize(scaleX, scaleY))
			{
				ScaleTransform t = new ScaleTransform(scaleX, scaleY, Bounds.TopLeft.X, Bounds.TopLeft.Y);
				TransformItems(t);
			}

		}

		// Handler for resizing from the top-right.
		private void HandleTopRight(object sender, DragDeltaEventArgs args)
		{
			var scaleY = -args.VerticalChange / Bounds.Height;
			var scaleX = args.HorizontalChange / Bounds.Width;

			scaleY += 1;
			scaleX += 1;

			if (Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift))
			{
				scaleX = scaleY = Math.Max(scaleX, scaleY);
			}

			if (EnforceSize(scaleX, scaleY))
			{
				ScaleTransform t = new ScaleTransform(scaleX, scaleY, Bounds.BottomLeft.X, Bounds.BottomLeft.Y);
				TransformItems(t);
			}

		}

DocumentFormat.OpenXml.Drawing.ScaleX : IEnumerable

Constructors :

public ScaleX()

Methods :

public OpenXmlElement CloneNode(Boolean deep = )
public Int32Value get_Numerator()
public Void set_Numerator(Int32Value value = )
public Int32Value get_Denominator()
public Void set_Denominator(Int32Value value = )
public Boolean get_HasChildren()
public String get_InnerXml()
public Void set_InnerXml(String value = )
public Void RemoveAllChildren()
public T ReplaceChild(OpenXmlElement newChild = , T oldChild = )
public Void RemoveAllChildren()
public Void Remove()
public Boolean IsAfter(OpenXmlElement element = )
public Boolean IsBefore(OpenXmlElement element = )
public Void AddAnnotation(Object annotation = )
public T Annotation()
public Object Annotation(Type type = )
public IEnumerable<T> Annotations()
public IEnumerable<Object> Annotations(Type type = )
public Void RemoveAnnotations()
public Void RemoveAnnotations(Type type = )
public IEnumerator<OpenXmlElement> GetEnumerator()
public Object Clone()
public MarkupCompatibilityAttributes get_MCAttributes()
public Void set_MCAttributes(MarkupCompatibilityAttributes value = )
public String LookupNamespace(String prefix = )
public String LookupPrefix(String namespaceUri = )
public IFeatureCollection get_Features()
public OpenXmlElementContext get_OpenXmlElementContext()
public OpenXmlElement get_FirstChild()
public OpenXmlElement get_LastChild()
public Boolean get_HasAttributes()
public IEnumerable<OpenXmlAttribute> get_ExtendedAttributes()
public OpenXmlElementList get_ChildElements()
public OpenXmlElement get_Parent()
public String get_NamespaceUri()
public String get_LocalName()
public String get_Prefix()
public IEnumerable<KeyValuePair<StringString>> get_NamespaceDeclarations()
public XmlQualifiedName get_XmlQualifiedName()
public XName get_XName()
public String get_InnerText()
public String get_OuterXml()
public OpenXmlAttribute GetAttribute(String localName = , String namespaceUri = )
public IList<OpenXmlAttribute> GetAttributes()
public Void SetAttribute(OpenXmlAttribute openXmlAttribute = )
public Void RemoveAttribute(String localName = , String namespaceUri = )
public Void SetAttributes(IEnumerable<OpenXmlAttribute> openXmlAttributes = )
public Void ClearAllAttributes()
public Void AddNamespaceDeclaration(String prefix = , String uri = )
public Void RemoveNamespaceDeclaration(String prefix = )
public T GetFirstChild()
public OpenXmlElement PreviousSibling()
public T PreviousSibling()
public OpenXmlElement NextSibling()
public T NextSibling()
public IEnumerable<OpenXmlElement> Ancestors()
public IEnumerable<T> Ancestors()
public IEnumerable<T> Elements()
public IEnumerable<OpenXmlElement> Elements()
public IEnumerable<T> Descendants()
public IEnumerable<OpenXmlElement> Descendants()
public IEnumerable<OpenXmlElement> ElementsBefore()
public IEnumerable<OpenXmlElement> ElementsAfter()
public Void WriteTo(XmlWriter xmlWriter = )
public Void Append(IEnumerable<OpenXmlElement> newChildren = )
public Void Append(OpenXmlElement[] newChildren = )
public T AppendChild(T newChild = )
public T InsertAfter(T newChild = , OpenXmlElement referenceChild = )
public T InsertBefore(T newChild = , OpenXmlElement referenceChild = )
public T InsertAfterSelf(T newElement = )
public T InsertBeforeSelf(T newElement = )
public T InsertAt(T newChild = , Int32 index = )
public T PrependChild(T newChild = )
public T RemoveChild(T oldChild = )
public Type GetType()
public String ToString()
public Boolean Equals(Object obj = )
public Int32 GetHashCode()

Other methods