Click or drag to resize

DrawingBase Methods

The DrawingBase type exposes the following members.

Methods
  NameDescription
Protected methodAddVisualChild
Defines the parent-child relationship between two visuals.
(Inherited from Visual.)
Public methodAdjustToBarNPrice
Adjusts to the nearest bar and price. This method is called on Mouse Up event. User must also calculate the Bar index and price.
Protected methodCalculateBarIndexFromPoint
Gets the bar index from point x
Protected methodCalculateBarIndexFromTime
Calculates bar index from time
Protected methodCalculateFirstBarPainted
Calculates the first bar painted
Protected methodCalculateFirstBarPainted(Int32)
Calculate the first bar painted
Protected methodCalculatePriceFromY
Calculates the price from Y
Protected methodCalculateXPoint
Calculates the X point
Protected methodCalculateYFromPrice
Returns the Y point from entry price
Public methodClearValue(DependencyProperty)
Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier.
(Inherited from DependencyObject.)
Public methodClearValue(DependencyPropertyKey)
Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey.
(Inherited from DependencyObject.)
Protected methodClone Obsolete.
Clones a chartObject
Public methodCoerceValue
Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.
(Inherited from DependencyObject.)
Public methodContains
Checks for the hittest
Public methodDraw
Draws the object
Public methodDrawHandle
Draws the handle
Public methodEquals
Determines whether a provided DependencyObject is equivalent to the current DependencyObject.
(Inherited from DependencyObject.)
Protected methodExtendLeft
Extends a line to the left
Protected methodExtendRight
Extends a line to the right
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindCommonVisualAncestor
Returns the common ancestor of two visual objects.
(Inherited from Visual.)
Protected methodGetAngle
Gets the angle of two points
Protected methodGetExtendedPoint
Calculates the extended point value of a line
Public methodGetHandle
Returns the handle point
Public methodGetHandleCursor
Returns the handle cursor
Public methodGetHandleRect
Returns the rectangle handle
Public methodGetHashCode
Gets a hash code for this DependencyObject.
(Inherited from DependencyObject.)
Protected methodGetLength
Returns the distance between 2 points
Public methodGetLocalValueEnumerator
Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.
(Inherited from DependencyObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns the current effective value of a dependency property on this instance of a DependencyObject.
(Inherited from DependencyObject.)
Protected methodGetVisualChild
Returns a specified child Visual for the parent ContainerVisual.
(Inherited from ContainerVisual.)
Public methodHitTest(Point)
Returns the top-most visual object of a hit test by specifying a Point.
(Inherited from ContainerVisual.)
Public methodHitTest(HitTestFilterCallback, HitTestResultCallback, HitTestParameters)
Initiates a hit test on the ContainerVisual by using the HitTestFilterCallback and HitTestResultCallback objects.
(Inherited from ContainerVisual.)
Protected methodHitTestCore(GeometryHitTestParameters)
Determines whether a geometry value is within the bounds of the visual object.
(Inherited from DrawingVisual.)
Protected methodHitTestCore(PointHitTestParameters)
Determines whether a point coordinate value is within the bounds of the DrawingVisual object.
(Inherited from DrawingVisual.)
Public methodIntersectsWith
Checks if the object intersects with another object
Public methodInvalidateProperty
Re-evaluates the effective value for the specified dependency property
(Inherited from DependencyObject.)
Public methodIsAncestorOf
Determines whether the visual object is an ancestor of the descendant visual object.
(Inherited from Visual.)
Public methodIsDescendantOf
Determines whether the visual object is a descendant of the ancestor visual object.
(Inherited from Visual.)
Protected methodLog
Appends the message to the log tab in Main View
Public methodMakeHitTest
Hit test. Return value: -1 - no hit, 0 - hit anywhere, > 1 - handle number
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMove
Moves the object to a new location
Public methodMoveHandleTo
Moves the handle to a new point
Protected methodNotifyPropertyChanged
Protected methodOnActualHeightChanged
Raised when the actual height of the view changes
Protected methodOnActualWidthChanged
Raised when the actual width of the view changes
Protected methodOnBarSpaceChanged
Raised when the bar space changes
Protected methodOnBarWidthChanged
Raised when the bar width changes
Protected methodOnDpiChanged
Called when the DPI at which this View is rendered changes.
(Inherited from Visual.)
Protected methodOnInitialized
Protected methodOnLastBarPaintedChanged
Raised when the lastBarPainted changes
Protected methodOnMaximumChanged
Raised when the Y-Axis maximum is changed
Protected methodOnMinimumChanged
Raised when the Y-Axis minimum is changed
Protected methodOnPropertyChanged
Invoked whenever the effective value of any dependency property on this DependencyObject has been updated. The specific dependency property that changed is reported in the event data.
(Inherited from DependencyObject.)
Protected methodOnVisualChildrenChanged
Called when the VisualCollection of the visual object is modified.
(Inherited from Visual.)
Protected methodOnVisualParentChanged
Called when the parent of the visual object is changed.
(Inherited from Visual.)
Public methodPointFromScreen
Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual.
(Inherited from Visual.)
Public methodPointToScreen
Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates.
(Inherited from Visual.)
Protected methodPrint(String)
Prints the message to the Output view
Protected methodPrint(String, Brush)
Prints the message to the output view
Public methodReadLocalValue
Returns the local value of a dependency property, if it exists.
(Inherited from DependencyObject.)
Public methodRefresh
Refresh the view
Protected methodRemoveVisualChild
Removes the parent-child relationship between two visuals.
(Inherited from Visual.)
Public methodRenderOpen
Opens the DrawingVisual object for rendering. The returned DrawingContext value can be used to render into the DrawingVisual.
(Inherited from DrawingVisual.)
Protected methodRoundToTickSize
Rounds the price points to the instrument tickSize
Public methodSetCurrentValue
Sets the value of a dependency property without changing its value source.
(Inherited from DependencyObject.)
Public methodSetValue(DependencyProperty, Object)
Sets the local value of a dependency property, specified by its dependency property identifier.
(Inherited from DependencyObject.)
Public methodSetValue(DependencyPropertyKey, Object)
Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.
(Inherited from DependencyObject.)
Protected methodShouldSerializeProperty
Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.
(Inherited from DependencyObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransformToAncestor(Visual)
Returns a transform that can be used to transform coordinates from the Visual to the specified Visual ancestor of the visual object.
(Inherited from Visual.)
Public methodTransformToAncestor(Visual3D)
Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object.
(Inherited from Visual.)
Public methodTransformToDescendant
Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant.
(Inherited from Visual.)
Public methodTransformToVisual
Returns a transform that can be used to transform coordinates from the Visual to the specified visual object.
(Inherited from Visual.)
Top
See Also