バージョン

HelpInfo コンストラクタ(String,String)

コンストラクター
シンタックス
'宣言
 
Public Function New( _
   ByVal helpfilepath As String, _
   ByVal keyword As String _
)
public HelpInfo( 
   string helpfilepath,
   string keyword
)

パラメータ

helpfilepath
表示されるヘルプ ファイルへの Filepath。
keyword
ヘルプが表示されるキーワード。
使用例
Private Sub DisplayMessage(ByVal owner As IWin32Window, ByVal message As String, ByVal caption As String, ByVal buttons As MessageBoxButtons, ByVal icon As MessageBoxIcon, ByVal defaultButton As MessageBoxDefaultButton, _ 
ByVal helpFilePath As String, ByVal keyWord As String) 
    ' Create an UltraMessageBoxInfo and set all the appropriate properties 
    Using messageBoxInfo As New UltraMessageBoxInfo() 
        messageBoxInfo.TextFormatted = message 
        messageBoxInfo.Caption = caption 
        messageBoxInfo.Buttons = buttons 
        messageBoxInfo.Icon = icon 
        messageBoxInfo.DefaultButton = defaultButton 
        messageBoxInfo.EnableSounds = Infragistics.Win.DefaultableBoolean.[False] 
        messageBoxInfo.MaximumWidth = 700 
        messageBoxInfo.Owner = owner 
        messageBoxInfo.Style = MessageBoxStyle.Standard 
        messageBoxInfo.HeaderFormatted = "<i>Do you want to continue?</i>" 
        messageBoxInfo.FooterFormatted = "Link to <a href=""http://www.infragistics.com""> Infragistics</a>." 
        messageBoxInfo.ShowHelpButton = Infragistics.Win.DefaultableBoolean.[True] 
        
        ' Create a HelpInfo object to hold the help data 
        Using helpData As New HelpInfo(helpFilePath, keyWord) 
            messageBoxInfo.HelpInfo = helpData 
            UltraMessageBoxManager.Show(messageBoxInfo) 
        End Using 
    End Using 
End Sub
private void DisplayMessage(IWin32Window owner, string message, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, string helpFilePath, string keyWord)
{
    // Create an UltraMessageBoxInfo and set all the appropriate properties
    using (UltraMessageBoxInfo messageBoxInfo = new UltraMessageBoxInfo())
    {
        messageBoxInfo.TextFormatted = message;
        messageBoxInfo.Caption = caption;
        messageBoxInfo.Buttons = buttons;
        messageBoxInfo.Icon = icon;
        messageBoxInfo.DefaultButton = defaultButton;
        messageBoxInfo.EnableSounds = Infragistics.Win.DefaultableBoolean.False;
        messageBoxInfo.MaximumWidth = 700;
        messageBoxInfo.Owner = owner;
        messageBoxInfo.Style = MessageBoxStyle.Standard;
        messageBoxInfo.HeaderFormatted = "<i>Do you want to continue?</i>";
        messageBoxInfo.FooterFormatted = "Link to <a href=\"http://www.infragistics.com\"> Infragistics</a>.";
        messageBoxInfo.ShowHelpButton = Infragistics.Win.DefaultableBoolean.True;

        // Create a HelpInfo object to hold the help data
        using (HelpInfo helpData = new HelpInfo(helpFilePath, keyWord))
        {
            messageBoxInfo.HelpInfo = helpData;
            UltraMessageBoxManager.Show(messageBoxInfo);
        }
    }
}
参照