/// <summary>
        /// Gets the native control type of this range. This can be used in
        /// tandem with the universal type got via GetControlType() in cases
        /// where just the ControlType is not enough to differentiate a control.
        /// For example, if the native technology element is HTML, this could be the tag name.
        /// </summary>
        /// <param name="nativeControlTypeKind">The kind of the native control type requested.</param>
        /// <returns>If supported, the native type of the control or else null.</returns>
        public override object GetNativeControlType(NativeControlTypeKind nativeControlTypeKind)
        {
            if (nativeControlTypeKind == NativeControlTypeKind.AsString)
            {
                return(this.ControlTypeName);
            }

            return(null);
        }
Exemple #2
0
        /// <summary>
        /// Gets the native control type of this element. This can be used in
        /// tandem with the universal type got via GetControlType() in cases
        /// where just the ControlType is not enough to differentiate a control.
        /// For example, if the native technology element is HTML, this could be the tag name.
        /// </summary>
        /// <param name="nativeControlTypeKind">The kind of the native control type requested.</param>
        /// <returns>If supported, the native type of the control or else null.</returns>
        public override object GetNativeControlType(NativeControlTypeKind nativeControlTypeKind)
        {
            if (nativeControlTypeKind == NativeControlTypeKind.AsString)
            {
                return this.ControlTypeName;
            }

            return null;
        }
Exemple #3
0
 /// <summary>
 /// Gets the native control type of this element. This can be used in
 /// tandem with the universal type got via GetControlType() in cases
 /// where just the ControlType is not enough to differentiate a control.
 /// For example, if the native technology element is HTML, this could be the tag name.
 /// </summary>
 /// <param name="nativeControlTypeKind">The kind of the native control type requested.</param>
 /// <returns>If supported, the native type of the control or else null.</returns>
 public override object GetNativeControlType(NativeControlTypeKind nativeControlTypeKind)
 {
     return(InnerElement.GetNativeControlType(nativeControlTypeKind));
 }