MFCDialogNumberVariableExtender Interface

Provides access to the minimum and maximum range of a numeric-type variable in an MFC dialog box.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

声明
<GuidAttribute("A2076C17-B1BA-4B10-B12D-7B9E41FD5BE7")> _
Public Interface MFCDialogNumberVariableExtender
[GuidAttribute("A2076C17-B1BA-4B10-B12D-7B9E41FD5BE7")]
public interface MFCDialogNumberVariableExtender
[GuidAttribute(L"A2076C17-B1BA-4B10-B12D-7B9E41FD5BE7")]
public interface class MFCDialogNumberVariableExtender
[<GuidAttribute("A2076C17-B1BA-4B10-B12D-7B9E41FD5BE7")>]
type MFCDialogNumberVariableExtender =  interface end
public interface MFCDialogNumberVariableExtender

The MFCDialogNumberVariableExtender type exposes the following members.

Properties

  Name Description
Public property MaxValue Gets or sets the maximum value for the numeric-type variable represented by the parent object.
Public property MinValue Gets or sets the minimum value for the numeric-type variable represented by the parent object.

Top

Methods

  Name Description
Public method Initialize Infrastructure. Microsoft Internal Use Only.

Top

Remarks

The MFCDialogNumberVariableExtender object represents the validation range of a string-type dialog box variable.

Examples

This example displays the minimum range of the first dialog box variable, implemented by the CAboutDlg class.

Sub GetRanges()
    Dim vcCM as VCCodeModel
    Dim vcClass as VCCodeClass
    Dim mfcVar as VCCodeVariable
    vcCM = DTE.Solution.Item(1).CodeModel
    vcClass = vcCM.Classes.Find("CAboutDlg")
    vcVar = vcCM.Variables.Item(1)
    MsgBox(vcVar.Extender("MFCDialogNumberVariable").MinValue)
End Sub

See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

See Also

Reference

Microsoft.VisualStudio.VCCodeModel Namespace

MinValue

MaxValue