Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / StreamGeometryContext.cs / 1 / StreamGeometryContext.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This class is used by the StreamGeometry class to generate an inlined, // flattened geometry stream. // //--------------------------------------------------------------------------- using MS.Internal; using System; using System.Collections; using System.Collections.Generic; using System.Security; using System.Security.Permissions; #if !PBTCOMPILER using System.Runtime.InteropServices; using System.Windows.Threading; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Media.Effects; using System.Windows.Media.Imaging; using System.Windows.Media.Media3D; using System.Diagnostics; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; using MS.Internal.PresentationCore; namespace System.Windows.Media #elif PBTCOMPILER using MS.Internal.Markup; namespace MS.Internal.Markup #endif { ////// StreamGeometryContext /// #if ! PBTCOMPILER public abstract class StreamGeometryContext : DispatcherObject, IDisposable #else internal abstract class StreamGeometryContext : IDisposable #endif { #region Constructors ////// This constructor exists to prevent external derivation /// internal StreamGeometryContext() { } #endregion Constructors #region IDisposable void IDisposable.Dispose() { #if ! PBTCOMPILER VerifyAccess(); #endif DisposeCore(); } #endregion IDisposable #region Public Methods ////// Closes the StreamContext and flushes the content. /// Afterwards the StreamContext can not be used anymore. /// This call does not require all Push calls to have been Popped. /// ////// This call is illegal if this object has already been closed or disposed. /// public virtual void Close() { DisposeCore(); } ////// BeginFigure - Start a new figure. /// public abstract void BeginFigure(Point startPoint, bool isFilled, bool isClosed); ////// LineTo - append a LineTo to the current figure. /// public abstract void LineTo(Point point, bool isStroked, bool isSmoothJoin); ////// QuadraticBezierTo - append a QuadraticBezierTo to the current figure. /// public abstract void QuadraticBezierTo(Point point1, Point point2, bool isStroked, bool isSmoothJoin); ////// BezierTo - apply a BezierTo to the current figure. /// public abstract void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin); ////// PolyLineTo - append a PolyLineTo to the current figure. /// public abstract void PolyLineTo(IListpoints, bool isStroked, bool isSmoothJoin); /// /// PolyQuadraticBezierTo - append a PolyQuadraticBezierTo to the current figure. /// public abstract void PolyQuadraticBezierTo(IListpoints, bool isStroked, bool isSmoothJoin); /// /// PolyBezierTo - append a PolyBezierTo to the current figure. /// public abstract void PolyBezierTo(IListpoints, bool isStroked, bool isSmoothJoin); /// /// ArcTo - append an ArcTo to the current figure. /// // Special case this one. Bringing in sweep direction requires code-gen changes. // #if !PBTCOMPILER public abstract void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin); #else public abstract void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, bool sweepDirection, bool isStroked, bool isSmoothJoin); #endif #endregion Public Methods ////// This is the same as the Close call: /// Closes the Context and flushes the content. /// Afterwards the Context can not be used anymore. /// This call does not require all Push calls to have been Popped. /// ////// This call is illegal if this object has already been closed or disposed. /// internal virtual void DisposeCore() {} ////// SetClosedState - Sets the current closed state of the figure. /// internal abstract void SetClosedState(bool closed); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DrawingBrush.cs
- LockCookie.cs
- StrokeNodeOperations2.cs
- FormClosedEvent.cs
- BitmapCodecInfo.cs
- InnerItemCollectionView.cs
- PagePropertiesChangingEventArgs.cs
- SessionStateItemCollection.cs
- AnonymousIdentificationSection.cs
- InvalidOleVariantTypeException.cs
- HwndAppCommandInputProvider.cs
- PageRouteHandler.cs
- PropertyChangeTracker.cs
- DefaultPrintController.cs
- BookmarkManager.cs
- SystemTcpStatistics.cs
- RuleRefElement.cs
- Speller.cs
- TerminateDesigner.cs
- WeakHashtable.cs
- EmptyEnumerator.cs
- Size3DValueSerializer.cs
- FixedFlowMap.cs
- TargetControlTypeAttribute.cs
- Schema.cs
- ICollection.cs
- RangeValidator.cs
- JsonWriter.cs
- QueryAccessibilityHelpEvent.cs
- DesignerHost.cs
- ActiveXSite.cs
- CalendarData.cs
- CssStyleCollection.cs
- SapiInterop.cs
- ClockGroup.cs
- XmlStringTable.cs
- QueryCursorEventArgs.cs
- WebPartExportVerb.cs
- BitmapCodecInfo.cs
- VBCodeProvider.cs
- BindingExpressionBase.cs
- HandleTable.cs
- XmlQueryCardinality.cs
- CryptoKeySecurity.cs
- SecurityBindingElementImporter.cs
- PrincipalPermission.cs
- Brushes.cs
- ToolStripControlHost.cs
- EnlistmentState.cs
- ServiceHandle.cs
- PropertyInfoSet.cs
- Attributes.cs
- hebrewshape.cs
- StatusStrip.cs
- InProcStateClientManager.cs
- TableItemStyle.cs
- PathFigure.cs
- ModelPerspective.cs
- XmlNodeComparer.cs
- TextViewSelectionProcessor.cs
- LookupBindingPropertiesAttribute.cs
- FreeIndexList.cs
- Attributes.cs
- LocalizationComments.cs
- SqlFacetAttribute.cs
- QueuePathDialog.cs
- FontFamilyIdentifier.cs
- PathFigureCollection.cs
- EncodedStreamFactory.cs
- ExecutionEngineException.cs
- SymbolType.cs
- backend.cs
- HwndProxyElementProvider.cs
- DefaultShape.cs
- StaticSiteMapProvider.cs
- WebConfigurationHost.cs
- RegexNode.cs
- Base64Encoder.cs
- Set.cs
- PointLightBase.cs
- FontFamily.cs
- MsmqAppDomainProtocolHandler.cs
- ByteStreamMessageEncoder.cs
- FacetValues.cs
- RoutedEventValueSerializer.cs
- EUCJPEncoding.cs
- RawUIStateInputReport.cs
- HandlerBase.cs
- NumberSubstitution.cs
- PathGeometry.cs
- VirtualDirectoryMapping.cs
- ServicePoint.cs
- ActivityWithResultWrapper.cs
- GridViewUpdatedEventArgs.cs
- UInt64.cs
- unsafeIndexingFilterStream.cs
- DBNull.cs
- TimeSpanValidatorAttribute.cs
- BuildDependencySet.cs
- ServiceNameElement.cs