InkAnalyzerBase.DirtyRegion - свойство
Обновлен: Ноябрь 2007
Gets the area that has changed since the last analysis operation. You can also use this property to manually modify this region.
Пространство имен: System.Windows.Ink.AnalysisCore
Сборка: IACore (в IACore.dll)
Синтаксис
'Декларация
Public ReadOnly Property DirtyRegion As AnalysisRegionBase
'Применение
Dim instance As InkAnalyzerBase
Dim value As AnalysisRegionBase
value = instance.DirtyRegion
public AnalysisRegionBase DirtyRegion { get; }
public:
property AnalysisRegionBase^ DirtyRegion {
AnalysisRegionBase^ get ();
}
/** @property */
public AnalysisRegionBase get_DirtyRegion()
public function get DirtyRegion () : AnalysisRegionBase
Значение свойства
Тип: System.Windows.Ink.AnalysisCore.AnalysisRegionBase
The area that has changed since the last analysis operation.
Заметки
This property identifies the areas that need to be analyzed or reanalyzed. All of the InkAnalyzerBase methods that add, remove, or update stroke data also update the DirtyRegion property. To manually mark an area for reanalysis, use the DirtyRegion object's Union method.
The InkAnalyzerBase analyzes ink within its DirtyRegion during a call to Analyze or BackgroundAnalyze. However, the ink analyzer may expand the analysis operation to include neighboring regions.
This property may contain nonadjacent areas.
Примеры
This example performs ink analysis on an InkAnalyzerBase, theInkAnalyzerBase, if the analyzer's DirtyRegion is not empty.
' Only start ink analysis if the dirty region is not empty.
Dim theStatus As System.Windows.Ink.AnalysisCore.AnalysisStatusBase = Nothing
If Not theInkAnalyzerBase.DirtyRegion.IsEmpty Then
' Perform the ink analysis.
theStatus = theInkAnalyzerBase.Analyze()
End If
// Only start ink analysis if the dirty region is not empty.
System.Windows.Ink.AnalysisCore.AnalysisStatusBase theStatus = null;
if (!theInkAnalyzerBase.DirtyRegion.IsEmpty)
{
// Perform the ink analysis.
theStatus = theInkAnalyzerBase.Analyze();
}
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
System.Windows.Ink.AnalysisCore - пространство имен