Item |
[SerializableAttribute] public class ItemLocationDirect : SuspendableDocumentLeafNodeWithEventArgs, IItemLocation, IDocumentLeafNode, INamedObject, IChangedEventSource, ISuspendableByToken, ITunnelingEventSource, IDisposable, ITreeNodeWithParent<IDocumentLeafNode>, ITreeNode<IDocumentLeafNode>, INodeWithParentNode<IDocumentLeafNode>, ICopyFrom, ICloneable
The ItemLocationDirect type exposes the following members.
| Name | Description | |
|---|---|---|
| ItemLocationDirect | Initializes a new instance of the ItemLocationDirect class. | |
| ItemLocationDirect(IItemLocation) | Initializes a new instance of the ItemLocationDirect class from another item location. | |
| ItemLocationDirect(ItemLocationDirect) | Initializes a new instance of the ItemLocationDirect class by copying from another instance. |
| Name | Description | |
|---|---|---|
| AbsolutePivotPosition | Gets or sets the absolute pivot position. | |
| AbsolutePivotPositionX | Gets or sets the absolute x position of the pivot point of the item. | |
| AbsolutePivotPositionY | Gets or sets the absolute y position of the pivot point of the item. | |
| AbsolutePivotPositionZ | Gets or sets the absolute z position of the pivot point of the item. | |
| AbsolutePosition | Gets or sets the absolute position. | |
| AbsolutePositionX | Gets or sets the absolute x position. | |
| AbsolutePositionY | Gets or sets the absolute y position. | |
| AbsolutePositionZ | Gets or sets the absolute z position. | |
| AbsoluteSize | Gets or sets the absolute size. | |
| AbsoluteSizeX | Gets or sets the absolute width. | |
| AbsoluteSizeY | Gets or sets the absolute height. | |
| AbsoluteSizeZ | Gets or sets the absolute depth. | |
| AbsoluteVectorPivotToLeftUpper | Gets the absolute vector between the pivot point of the item and its left upper edge. | |
| AccumulatedEventData |
Gets the accumulated event data.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT) | |
| Debug_AbsolutePath |
Gets the absolute path of the node for debugging purposes.
(Inherited from SuspendableDocumentNodeBase) | |
| IsAutoSized | Gets a value indicating whether the this location belongs to a graphical element which is auto sized. | |
| IsDisposed |
Gets a value indicating whether this instance is disposed.
(Inherited from SuspendableDocumentNodeBase) | |
| IsDisposeInProgress |
Gets a value indicating whether for this instance dispose is in progress, or the instance is already disposed.
(Inherited from SuspendableDocumentNodeBase) | |
| IsSomeoneListeningToChanges |
Gets a value indicating whether someone is listening to changes. For this, either the ParentObject or the Changed event must be set.
(Inherited from SuspendableDocumentNodeBase) | |
| IsSuspended |
Gets a value indicating whether this instance is suspended.
(Inherited from SuspendableDocumentLeafNode) | |
| LocalAnchorX | Gets or sets the local anchor's x position. This is an absolute value (in points = 1/72 inch) or a value relative to the own item width. The local anchor point is the point, for which the location can be set in the position/size dialog of the item. A relative value of 0 designates the left boundary of the item, a relative value of 0.5 designates the horizontal center of the item, and a relative value of 1 designates the right boundary of the item. | |
| LocalAnchorY | Gets or sets the local anchor's y position. This is an absolute value (in points = 1/72 inch) or a value relative to the own item height. The local anchor point is the point, for which the location can be set in the position/size dialog of the item. A relative value of 0 designates the upper boundary of the item, a relative value of 0.5 designates the vertical center of the item, and a relative value of 1 designates the lower boundary of the item. | |
| LocalAnchorZ | Gets or sets the local anchor's z position. This is an absolute value (in points = 1/72 inch) or a value relative to the own item height. The local anchor point is the point, for which the location can be set in the position/size dialog of the item. A relative value of 0 designates the upper boundary of the item, a relative value of 0.5 designates the vertical center of the item, and a relative value of 1 designates the lower boundary of the item. | |
| Name |
Gets the name of this document node. Null is returned if the name is not set or unknown.
The set accessor will for most nodes throw a InvalidOperationException, since the name can only be set on IProjectItems.
(Inherited from SuspendableDocumentNodeBase) | |
| ParentAnchorX | Gets or sets the parent anchor's x position. This is an absolute value (in points = 1/72 inch) or a value relative to the parent's width. The parent anchor point is the point inside the parent item, from which the location of the item is measured. Stricly speaking, the position of the item (as shown in the dialog) is the vector from the parent's anchor point to the local anchor point). A relative value of 0 designates the left boundary of the parent, a relative value of 0.5 designates the horizontal center of the parent, and a relative value of 1 designates the right boundary of the parent. | |
| ParentAnchorY | Gets or sets the parent anchor's y position. This is an absolute value (in points = 1/72 inch) or a value relative to the parent's height. The parent anchor point is the point inside the parent item, from which the location of the item is measured. Stricly speaking, the position of the item (as shown in the dialog) is the vector from the parent's anchor point to the local anchor point). A relative value of 0 designates the upper boundary of the parent, a relative value of 0.5 designates the vertical center of the parent, and a relative value of 1 designates the lower boundary of the parent. | |
| ParentAnchorZ | Gets or sets the parent anchor's z position. This is an absolute value (in points = 1/72 inch) or a value relative to the parent's height. The parent anchor point is the point inside the parent item, from which the location of the item is measured. Stricly speaking, the position of the item (as shown in the dialog) is the vector from the parent's anchor point to the local anchor point). A relative value of 0 designates the upper boundary of the parent, a relative value of 0.5 designates the vertical center of the parent, and a relative value of 1 designates the lower boundary of the parent. | |
| ParentObject |
Gets/sets the parent object this instance belongs to.
(Inherited from SuspendableDocumentNodeBase) | |
| ParentSize | Gets the cached parent size. | |
| PositionX | The x position of the item, either absolute in points or relative to the parent's width. | |
| PositionY | The y position of the item, either absolute or relative to the parent's height. | |
| PositionZ | The z position of the item, either absolute or relative to the parent's height. | |
| RotationX | The rotation angle (in degrees) of the layer. | |
| RotationY | The rotation angle (in degrees) of the layer. | |
| RotationZ | The rotation angle (in degrees) of the layer. | |
| Scale | The scaling factor of the item, normally 1. | |
| ScaleX | The scaling factor of the item in x-direction, normally 1. | |
| ScaleY | The scaling factor of the item in y-direction, normally 1. | |
| ScaleZ | The scaling factor of the item in z-direction, normally 1. | |
| ShearX | The shear factor of the item. | |
| ShearY | The shear factor of the item. | |
| ShearZ | The shear factor of the item. | |
| SizeX | The width of the item, either as absolute value in point (1/72 inch), or as value relative to the parent's width. | |
| SizeY | The height of the item, either as absolute value in point (1/72 inch), or as value relative to the parent's height. | |
| SizeZ | The z size of the item, either as absolute value in point (1/72 inch), or as value relative to the parent's height. |
| Name | Description | |
|---|---|---|
| AccumulateChangeData |
Accumulates the change data of the child.
(Inherited from SuspendableDocumentLeafNodeWithEventArgs) | |
| AccumulatedChangeData_SetBackAfterResumeAndSuspend |
Sets the change data without further processing. This function is infrastructure and intended to use only in OnResume after the parent has suspended this node again.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT) | |
| AccumulatedEventData_Clear |
Clears the accumulated event data.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT) | |
| AccumulatedEventData_HasZeroOrOneEventArg |
Determines whether there is no or only one single event arg accumulated. If this is the case, the return value is true. If there is one event arg accumulated, it is returned in the argument singleEventArg.
The return value is false if there is more than one event arg accumulated. In this case the singleEventArg is null on return, and the calling function should use AccumulatedEventData to
enumerate all accumulated event args.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT) | |
| ChangeParentAnchorButKeepPosition | Changes the parent anchor while keeping the absolute position constant. | |
| ChangeParentAnchorToLeftTopButKeepPosition | Changes the parent anchor to the left-top-front corner while keeping the absolute position constant. | |
| ChangeRelativePositionValuesToAbsolutePositionValues | Converts relative position values to absolute values. | |
| ChangeRelativeSizeValuesToAbsoluteSizeValues | Converts relative size values to absolute values. | |
| ChildDisposeMemberT |
Helper function to dispose a child node of this instance. It helps to ensure the correct order: first, the child node is set to null and only then the child node is disposed.
(Inherited from SuspendableDocumentNodeBase) | |
| Clone | Creates a strongly typed copy of this item location. | |
| CopyFrom | Try to copy from another object. Should try to copy even if the object to copy from is not of the same type, but a base type. In this case only the base properties should be copied. | |
| Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from SuspendableDocumentNodeBase) | |
| Dispose(Boolean) |
Releases unmanaged and - optionally - managed resources.
(Inherited from SuspendableDocumentNodeBase) | |
| EhParentTunnelingEventHappened |
Is called by the parent when a tunneling event happened into the parent.
(Inherited from SuspendableDocumentNodeBase) | |
| EhSelfChanged |
Calls EhSelfChanged(EventArgs) with Empty.
(Inherited from SuspendableDocumentLeafNodeWithEventArgs) | |
| EhSelfChanged(EventArgs) |
Called if some member of this instance itself has changed.
(Inherited from SuspendableDocumentLeafNode) | |
| EhSelfTunnelingEventHappened(TunnelingEventArgs) |
Is called by this instance if a tunneling event happened into this instance. The tunneling event triggers the TunneledEvent and is additionally distributed to all childs of this instance.
(Inherited from SuspendableDocumentNodeBase) | |
| EhSelfTunnelingEventHappened(TunnelingEventArgs, Boolean) |
Is called by this instance if a tunneling event happened into this instance.
The tunneling event triggers the TunneledEvent and is - depending on the provided parameter - also distributed to all childs of this instance.
(Inherited from SuspendableDocumentNodeBase) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize |
Finalizes an instance of the SuspendableDocumentNodeBase class.
(Inherited from SuspendableDocumentNodeBase) | |
| GetAbsoluteEnclosingRectangle | Gets the absolute enclosing rectangle, taking into account ScaleX, ScaleY, Rotation and Shear (SSRS). | |
| GetAbsoluteEnclosingRectangleWithoutSSRS | Gets the absolute enclosing rectangle without taking into account ScaleX, ScaleY, Rotation and Shear (SSRS). | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| HandleLowPriorityChildChangeCases |
Handles the cases when a child changes, but a reaction is necessary only if the node is currently not suspended.
(Inherited from SuspendableDocumentLeafNode) | |
| InternalSetAbsoluteSizeSilent | Updates the absolute size without raising change notifications. | |
| InternalSetAbsoluteSizeXSilent | Updates the absolute width without raising change notifications. | |
| InternalSetAbsoluteSizeYSilent | Updates the absolute height without raising change notifications. | |
| InternalSetAbsoluteSizeZSilent | Updates the absolute depth without raising change notifications. | |
| InternalSetScaleSilent | Updates all scale components without raising change notifications. | |
| InternalSetScaleXSilent | Updates the x scale without raising change notifications. | |
| InternalSetScaleYSilent | Updates the y scale without raising change notifications. | |
| InternalSetScaleZSilent | Updates the z scale without raising change notifications. | |
| InternalSetSizeSilent | Updates all size components without raising change notifications. | |
| InternalSetSizeXSilent | Updates the width value without raising change notifications. | |
| InternalSetSizeYSilent | Updates the height value without raising change notifications. | |
| InternalSetSizeZSilent | Updates the depth value without raising change notifications. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| OnAboutToBeResumed |
Is called when the suspend level is still 1 (one), but is about to fall to zero, i.e. shortly before the call to OnResume. This function is not called before OnResumeSilently!
(Inherited from SuspendableDocumentLeafNode) | |
| OnChanged |
Fires the change event with the EventArgs provided in the argument.
(Inherited from SuspendableDocumentNodeBase) | |
| OnResume |
Is called when the suspend level falls down from 1 to zero by a call to Resume or a call to [M:Altaxo.Main.ISuspendToken.Dispose()].
(Inherited from SuspendableDocumentLeafNode) | |
| OnResumeSilently |
Is called when the suspend level falls down from 1 to zero by a call to ResumeSilently.
The implementation should delete any accumulated events, should also disarm the suspendTokens of the childs of this object, and should not fire any Changed events nor set the change state of the object to dirty.
(Inherited from SuspendableDocumentLeafNode) | |
| OnSuspended |
Called when the suspend level has just gone from 0 to 1, i.e. the object was suspended.
(Inherited from SuspendableDocumentLeafNode) | |
| OnTunnelingEvent |
Fires the TunneledEvent event.
(Inherited from SuspendableDocumentNodeBase) | |
| Resume(ISuspendToken) |
Resumes changed events by calling Resume for the provided suspend token, and setting the reference to the suspend token to null.
If Event data were accumulated during the suspended state, a changed event is triggered for each event data.
(Inherited from SuspendableDocumentNodeBase) | |
| Resume(ISuspendToken, EventFiring) |
Resumes changed events, either with taking the accumulated event data into account (see Resume(ISuspendToken)) or discarding the accumulated event data (see ResumeSilently(ISuspendToken),
depending on the provided argument eventFiring.
(Inherited from SuspendableDocumentNodeBase) | |
| ResumeCompleteTemporarily |
Resumes the object completely for only a short time. Thus, if object was suspended before, it will be suspended again when the function returns.
(Inherited from SuspendableDocumentLeafNode) | |
| ResumeCompleteTemporarilyGetToken |
Resumes the object completely for the time the returned token is referenced and not disposed.
The return value is a token that had 'absorbed' the suspend count of the object, resulting in the suspend count
of the object dropped to 0 (zero). When the returned token is finally disposed, the suspend count of the object is increased again by the 'absorbed' suspend count.
(Inherited from SuspendableDocumentLeafNode) | |
| ResumeSilently |
Resumes changed events by calling Resume for the provided suspend token, and setting the reference to the suspend token to null.
All event data accumulated during the suspended state are discarded, and thus no change event is triggered even if the instance has changed during the suspended state.
(Inherited from SuspendableDocumentNodeBase) | |
| SetAbsolutePivotPosition | Sets the absolute pivot position. | |
| SetAbsoluteSize | Sets the absolute size. | |
| SetDisposeInProgress |
Sets the flag that dispose is in progress for this node and all child nodes recursively.
(Inherited from SuspendableDocumentNodeBase) | |
| SetMemberAndRaiseSelfChangedT(NullableT, NullableT) |
Sets a member variable of this instance and raise a change event with Empty if the new value is different from the old value.
The comparison is done using the IEquatableT interface of the member variable.
Note: to set members that implement IDocumentNode please use the Child... functions.
(Inherited from SuspendableDocumentNodeBase) | |
| SetMemberAndRaiseSelfChangedT(T, T) |
Sets a member variable of this instance and raise a change event with Empty if the new value is different from the old value.
The comparison is done using the IEquatableT interface of the member variable.
Note: to set members that implement IDocumentNode please use the Child... functions.
(Inherited from SuspendableDocumentNodeBase) | |
| SetMemberEnumAndRaiseSelfChangedT |
Sets a member variable (which is an Enum) of this instance and raise a change event with Empty if the new value is different from the old value.
The comparison is done using the IEquatableT interface of the member variable.
Note: to set members that implement IDocumentNode please use the Child... functions.
(Inherited from SuspendableDocumentNodeBase) | |
| SetParentSize | Updates the cached parent size. | |
| SetPositionAndSize | Sets position and size in one operation. | |
| SetRelativeSizePositionFromAbsoluteValues | Converts absolute size and position values into relative values. | |
| SuspendGetToken |
Suspend will increase the SuspendLevel.
(Inherited from SuspendableDocumentLeafNode) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| TryGetName |
Test if this item already has a name.
(Inherited from SuspendableDocumentNodeBase) |
| Name | Description | |
|---|---|---|
| Changed | Fired when something in the object has changed, and the object is not suspended. (Inherited from SuspendableDocumentNodeBase) | |
| TunneledEvent |
The event that is fired when the object is disposed. First argument is the sender, second argument is the original source, and third argument is the event arg.
(Inherited from SuspendableDocumentNodeBase) |
| Name | Description | |
|---|---|---|
| _accumulatedEventData |
Holds the accumulated change data.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT) | |
| _localAnchorX | Stores the local x anchor. | |
| _localAnchorY | Stores the local y anchor. | |
| _localAnchorZ | Stores the local z anchor. | |
| _parent |
The parent object this instance belongs to.
(Inherited from SuspendableDocumentNodeBase) | |
| _parentAnchorX | Stores the parent x anchor. | |
| _parentAnchorY | Stores the parent y anchor. | |
| _parentAnchorZ | Stores the parent z anchor. | |
| _parentSize | Stores the size of the parent container. | |
| _positionX | Stores the x position component. | |
| _positionY | Stores the y position component. | |
| _positionZ | Stores the z position component. | |
| _rotationX | The rotation angle (in degrees) of the layer. | |
| _rotationY | The rotation angle (in degrees) of the layer. | |
| _rotationZ | The rotation angle (in degrees) of the layer. | |
| _scaleX | The scaling factor of the layer, normally 1. | |
| _scaleY | Stores the y scaling factor. | |
| _scaleZ | Stores the z scaling factor. | |
| _shearX | Stores the x shear factor. | |
| _shearY | Stores the y shear factor. | |
| _shearZ | Stores the z shear factor. | |
| _sizeX | Stores the width component. | |
| _sizeY | Stores the height component. | |
| _sizeZ | Stores the depth component. |
| Name | Description | |
|---|---|---|
| GetPropertyContext |
Gets the property context of the document node. If the provided node is not implementing IPropertyBagOwner, the parent nodes of this node are searched,
until a node which implements IPropertyBagOwner is found.
(Defined by PropertyExtensions) |