Skip to main content
.NET Framework Class Library
StreamGeometryContext Class

Describes a geometry using drawing commands. This class is used with the StreamGeometry class to create a lightweight geometry that does not support data binding, animation, or modification.

Inheritance Hierarchy
SystemObject
   System.Windows.ThreadingDispatcherObject
    System.Windows.MediaStreamGeometryContext

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
Syntax
Public MustInherit Class StreamGeometryContext _
	Inherits [%$TOPIC/ms635540_en-us_VS_110_3_0_0_0_0%] _
	Implements [%$TOPIC/ms635540_en-us_VS_110_3_0_0_0_1%]
public abstract class StreamGeometryContext : [%$TOPIC/ms635540_en-us_VS_110_3_0_1_0_0%], 
	[%$TOPIC/ms635540_en-us_VS_110_3_0_1_0_1%]
public ref class StreamGeometryContext abstract : public [%$TOPIC/ms635540_en-us_VS_110_3_0_2_0_0%], 
	[%$TOPIC/ms635540_en-us_VS_110_3_0_2_0_1%]
[<[%$TOPIC/ms635540_en-us_VS_110_3_0_3_0_0%]>]
type StreamGeometryContext =  
    class 
        inherit [%$TOPIC/ms635540_en-us_VS_110_3_0_3_0_1%] 
        interface [%$TOPIC/ms635540_en-us_VS_110_3_0_3_0_2%] 
    end
public abstract class StreamGeometryContext extends [%$TOPIC/ms635540_en-us_VS_110_3_0_4_0_0%] implements [%$TOPIC/ms635540_en-us_VS_110_3_0_4_0_1%]

The StreamGeometryContext type exposes the following members.

Properties
  NameDescription
Public property DispatcherGets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Top
Methods
  NameDescription
Public method ArcToDraws an arc to the specified point.
Public method BeginFigureSpecifies the starting point for a new figure.
Public method BezierToDraws a Bezier curve to the specified point.
Public method CheckAccessDetermines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public method CloseCloses this context and flushes its content so that it can be rendered.
Public method Equals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCodeServes as the default hash function. (Inherited from Object.)
Public method GetTypeGets the Type of the current instance. (Inherited from Object.)
Public method LineToDraws a straight line to the specified Point.
Protected method MemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public method PolyBezierToDraws one or more connected Bezier curves.
Public method PolyLineToDraws one or more connected straight lines.
Public method PolyQuadraticBezierToDraws one or more connected quadratic Bezier curves.
Public method QuadraticBezierToDraws a quadratic Bezier curve.
Public method ToStringReturns a string that represents the current object. (Inherited from Object.)
Public method VerifyAccessEnforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implemetation Private method IDisposableDisposeThis member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Top
Exceptions
ExceptionCondition
InvalidOperationException

An attempt was made to add a segment without starting a figure by calling the BeginFigure method.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.