AnimationDeveloperSamples.MapGraphicKeyframe.SetText C# (CSharp) Method

SetText() public method

public SetText ( int propIndex, int columnIndex, string text ) : void
propIndex int
columnIndex int
text string
return void
        public void SetText(int propIndex, int columnIndex, string text)
        {
            switch (propIndex)
            {
                case 0:
                    {
                        if (columnIndex == 0)
                        {
                            Position.X = System.Convert.ToDouble(text);
                        }
                        if (columnIndex == 1)
                        {
                            Position.Y = System.Convert.ToDouble(text);
                        }
                    }
                    break;
                case 1:
                    {
                        Rotation = System.Convert.ToDouble(text);
                    }
                    break;
            }

            return;
        }
        #endregion