Partilhar via


MFCDialogNumberVariableExtender.MaxValue Property

Definition

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

public:
 property System::String ^ MaxValue { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ MaxValue { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(2)]
public string MaxValue { [System.Runtime.InteropServices.DispId(2)] get; [System.Runtime.InteropServices.DispId(2)] set; }
[<System.Runtime.InteropServices.DispId(2)>]
[<get: System.Runtime.InteropServices.DispId(2)>]
[<set: System.Runtime.InteropServices.DispId(2)>]
member this.MaxValue : string with get, set
Public Property MaxValue As String

Property Value

A string representing the maximum numeric value.

Attributes

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.

Applies to