AnalysisStatus.AppliedChangesRegion Property
Returns the region of the document where the InkAnalyzer has changed the ContextNode tree.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public ReadOnly Property AppliedChangesRegion As AnalysisRegion
'Usage
Dim instance As AnalysisStatus
Dim value As AnalysisRegion
value = instance.AppliedChangesRegion
public AnalysisRegion AppliedChangesRegion { get; }
public:
property AnalysisRegion^ AppliedChangesRegion {
AnalysisRegion^ get ();
}
public function get AppliedChangesRegion () : AnalysisRegion
Property Value
Type: System.Windows.Ink.AnalysisRegion
The AnalysisRegion of the document where changes were updated.
Remarks
AppliedChangesRegion is used when the application must locate the area that changed. For example, the application might draw a special tag that the user clicks when modifying the analysis results.
Examples
The following example is an ResultsUpdated event handler that is called when BackgroundAnalyze completes an analysis. In the event handler, a Rectangle that represents the AppliedChangesRegion is drawn on an InkCanvas named theInkCanvas.
Sub theInkAnalyzer_ResultsUpdated(ByVal sender As Object, _
ByVal e As ResultsUpdatedEventArgs)
Dim status As AnalysisStatus = e.Status
' Draw a rectangle around the changed region.
If status.Successful Then
Dim bounds As Rect = status.AppliedChangesRegion.GetBounds()
Dim box As Rectangle = New Rectangle()
box.Width = bounds.Width
box.Height = bounds.Height
InkCanvas.SetTop(box, bounds.Top)
InkCanvas.SetLeft(box, bounds.Left)
box.Stroke = Brushes.Black
theInkCanvas.Children.Add(box)
End If
End Sub 'theInkAnalyzer_ResultsUpdated
void theInkAnalyzer_ResultsUpdated(object sender, ResultsUpdatedEventArgs e)
{
AnalysisStatus status = e.Status;
// Draw a rectangle around the changed region.
if (status.Successful)
{
Rect bounds = status.AppliedChangesRegion.GetBounds();
Rectangle box = new Rectangle();
box.Width = bounds.Width;
box.Height = bounds.Height;
InkCanvas.SetTop(box, bounds.Top);
InkCanvas.SetLeft(box, bounds.Left);
box.Stroke = Brushes.Black;
theInkCanvas.Children.Add(box);
}
}
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0