VintaSoft Imaging .NET SDK 15.2: Documentation for .NET developer
Vintasoft.Imaging.Annotation Namespace / CompositeAnnotationData Class / SetLocationsAndSizes(PointF,PointF,SizeF,SizeF,List<AnnotationDataState>,List<AnnotationDataState>,Boolean,Boolean) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
SetLocationsAndSizes(PointF,PointF,SizeF,SizeF,List<AnnotationDataState>,List<AnnotationDataState>,Boolean,Boolean) Method (CompositeAnnotationData)
In This Topic
Sets the location and size of the annotation and determines new locations and sizes of all included annotations with given initial state of all included annotations.
Syntax
'Declaration

Public Sub SetLocationsAndSizes( _
ByVal oldLocation
Old location of this CompositeAnnotationData.
As System.Drawing.PointF, _
ByVal newLocation
New location of this CompositeAnnotationData.
As System.Drawing.PointF, _
ByVal oldSize
Old size of this CompositeAnnotationData.
As System.Drawing.SizeF, _
ByVal newSize
New size of this CompositeAnnotationData.
As System.Drawing.SizeF, _
ByVal itemOldStates
List of all items' old states.
As System.Collections.Generic.List(Of AnnotationDataState), _
ByRef itemNewStates
Returns a list of all items' new states.
As System.Collections.Generic.List(Of AnnotationDataState), _
ByRef horizontalMirrored
A value indicating whether annotation is horizontal mirrored.
As Boolean, _
ByRef verticalMirrored
A value indicating whether annotation is vertical mirrored.
As Boolean _
)

Parameters

oldLocation
Old location of this CompositeAnnotationData.
newLocation
New location of this CompositeAnnotationData.
oldSize
Old size of this CompositeAnnotationData.
newSize
New size of this CompositeAnnotationData.
itemOldStates
List of all items' old states.
itemNewStates
Returns a list of all items' new states.
horizontalMirrored
A value indicating whether annotation is horizontal mirrored.
verticalMirrored
A value indicating whether annotation is vertical mirrored.
Exceptions
ExceptionDescription
Thrown if itemOldStates is null.
Remarks

Annotation will be mirrored on X axis if old and new size on X axis have different signs.
Annotation will be mirrored on Y axis if old and new size on Y axis have different signs.

Requirements

Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also