Compartir a través de


MFCDialogNumberVariableExtender.MaxValue Property

Gets or sets the maximum value for the numeric-type variable represented by the parent object.

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

Syntax

Property MaxValue As String

Dim instance As MFCDialogNumberVariableExtender
Dim value As String

value = instance.MaxValue

instance.MaxValue = value
string MaxValue { get; set; }
property String^ MaxValue {
    String^ get ();
    void set (String^ value);
}
function get MaxValue () : String
function set MaxValue (value : String)

Property Value

Type: System.String

A string representing the maximum numeric value.

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").MaxValue)
End Sub

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

Permissions

See Also

Reference

MFCDialogNumberVariableExtender Interface

MFCDialogNumberVariableExtender Members

Microsoft.VisualStudio.VCCodeModel Namespace