VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Annotation Namespace / CompositeAnnotationData Class / SetLocationsAndSizes Method
Old location of this CompositeAnnotationData.
New location of this CompositeAnnotationData.
Old size of this CompositeAnnotationData.
New size of this CompositeAnnotationData.
List of all items' old states.
Returns a list of all items' new states.
Returns whether annotation is horizontal mirrored.
Returns whether annotation is vertical mirrored.



In This Topic
    SetLocationsAndSizes Method
    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 As PointF, _
       ByVal newLocation As PointF, _
       ByVal oldSize As SizeF, _
       ByVal newSize As SizeF, _
       ByVal itemOldStates As List(Of AnnotationDataState), _
       ByRef itemNewStates As List(Of AnnotationDataState), _
       ByRef horizontalMirrored As Boolean, _
       ByRef verticalMirrored As Boolean _
    ) 
    public void SetLocationsAndSizes( 
       PointF oldLocation,
       PointF newLocation,
       SizeF oldSize,
       SizeF newSize,
       List<AnnotationDataState> itemOldStates,
       out List<AnnotationDataState> itemNewStates,
       ref bool horizontalMirrored,
       ref bool verticalMirrored
    )
    public: void SetLocationsAndSizes( 
       PointF oldLocation,
       PointF newLocation,
       SizeF oldSize,
       SizeF newSize,
       List<AnnotationDataState*>* itemOldStates,
       [PARAMFLAG::Out] List<AnnotationDataState*>* itemNewStates,
       ref bool horizontalMirrored,
       ref bool verticalMirrored
    ) 

    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
    Returns whether annotation is horizontal mirrored.
    verticalMirrored
    Returns 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: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also