示例#1
0
        ///<summary>
        /// Returns a Property if stringProperty is a valid index
        ///</summary>
        internal static Property GetPropertyFromString(Animatable handle, string stringProperty)
        {
            // Convert property string to be lowercase
            StringBuilder sb = new StringBuilder(stringProperty);
            sb[0] = (char)(sb[0] | 0x20);
            string str = sb.ToString();

            Property property = new Property(handle, str);
            if (property.propertyIndex == Property.INVALID_INDEX)
            {
                throw new System.ArgumentException("string property is invalid");
            }

            return property;
        }
示例#2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Animatable obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }