HasCacheDialog Method

Summary
Queries whether the specified property dialog for the caching filter is available.
Syntax
C#
C++/CLI
public bool HasCacheDialog( 
   TargetFormatDlg Dialog 
) 
public: 
bool HasCacheDialog(  
   TargetFormatDlg Dialog 
)  

Parameters

Dialog
Value that specifies which dialog to display. Must be one of the TargetFormatDlg constants.

Return Value

System.Boolean

Remarks

Queries whether the specified property dialog for the caching filter is available. Use the UseFilterCache property to get a value that indicates whether the toolkit is currently caching filters; or set a value that indicates whether to enable or disable the caching of filters. Use the GetCacheObject method to retrieve the caching filter object. Use the ShowCacheDialog method to display a specific property dialog for the caching filter.

Example
C#
using Leadtools; 
using Leadtools.Multimedia; 
using LeadtoolsMultimediaExamples.Fixtures; 
 
 
public bool _result = false; 
public CaptureCtrlForm _form = new CaptureCtrlForm(); 
 
public void HasCacheDialogExample() 
{ 
   // reference the capture control 
   CaptureCtrl capturectrl = _form.CaptureCtrl; 
 
   try 
   { 
      // reference the MPEG2Transport target format from the collection of the target formats 
      TargetFormat fmt = capturectrl.TargetFormats.MPEG2Transport; 
 
      // set the MPEG2Transport target format to use filter cache 
      fmt.UseFilterCache = true; 
 
      // check to see if the format has a multiplexer dialog for settings  
      if (fmt.HasCacheDialog(TargetFormatDlg.Mux)) 
      { 
         // show the dialog 
         fmt.ShowCacheDialog(TargetFormatDlg.Mux, _form); 
 
         // set the result 
         _result = true; 
      } 
   } 
   catch (Exception) 
   { 
      _result = false; 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.