Click or drag to resize

EmbeddedImageAnnotationGetRegion Method

Returns a rectangular region for this annotation, including its grips if selected.

Namespace:  Atalasoft.Annotate.UI
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public override AnnotationRegion GetRegion(
	AnnotateSpace space
)

Parameters

space
Type: Atalasoft.AnnotateAnnotateSpace
The space coordinate system used to generate this region.

Return Value

Type: AnnotationRegion
The region of this annotation in the specified space.
Examples
The following is an example of how a custom annotation may override the GetRegion method.
GetRegionCS
public override AnnotationRegion GetRegion(AnnotateSpace space)
{
Create the region in annotation space.
AnnotationRegion reg = new AnnotationRegion(new RectangleF(PointF.Empty, _data.Size));
if (this.Selected && this.Grips != null)
AddGripsToRegion(reg);
ApplyRegionTransform(reg, space);
return reg;
}
GetRegionVB
Public Overrides Function GetRegion(ByVal space As AnnotateSpace) As AnnotationRegion
' Create the region in annotation space.
Dim reg As AnnotationRegion =  New AnnotationRegion(New RectangleF(PointF.Empty,_data.Size))
If Not Me.Selected And Me.Grips Is Nothing Then
AddGripsToRegion(reg)
End If
ApplyRegionTransform(reg, space)
Return reg
End Function
See Also