Partager via


MFCDialogNumberVariableExtender.MinValue Property

Gets or sets the minimum 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

'Declaration
Property MinValue As String
string MinValue { get; set; }
property String^ MinValue {
    String^ get ();
    void set (String^ value);
}
abstract MinValue : string with get, set
function get MinValue () : String 
function set MinValue (value : String)

Property Value

Type: System.String
A string representing the minimum 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").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.

.NET Framework Security

See Also

Reference

MFCDialogNumberVariableExtender Interface

Microsoft.VisualStudio.VCCodeModel Namespace