AnnotationUIGetRegion Method |
Returns a rectangular region for this annotation, including its grips if
selected.
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 virtual AnnotationRegion GetRegion(
AnnotateSpace space
)
Public Overridable Function GetRegion (
space As AnnotateSpace
) As AnnotationRegion
Parameters
- space
- Type: Atalasoft.AnnotateAnnotateSpace
The space coordinate system used to generate this region.
Return Value
Type:
AnnotationRegionThe region of this annotation in the specified space.
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.
public override AnnotationRegion GetRegion(AnnotateSpace space)
{
AnnotationRegion reg = new AnnotationRegion(new RectangleF(PointF.Empty, _data.Size));
if (this.Selected && this.Grips != null)
AddGripsToRegion(reg);
ApplyRegionTransform(reg, space);
return reg;
}
Public Overrides Function GetRegion(ByVal space As AnnotateSpace) As AnnotationRegion
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