Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Generated / PolyBezierSegmentFigureLogic.cs / 1305600 / PolyBezierSegmentFigureLogic.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // This file was generated from the codegen template located at: // wpf\src\Graphics\codegen\mcg\generators\PolySegmentTemplate.cs // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Security.Permissions; using System.Windows; using System.Windows.Markup; using System.Windows.Media.Animation; using System.ComponentModel.Design.Serialization; using System.Windows.Media.Composition; using System.Reflection; using MS.Internal; using System.Security; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { #region PolyBezierSegment ////// PolyBezierSegment /// public sealed partial class PolyBezierSegment : PathSegment { #region Constructors ////// PolyBezierSegment constructor /// public PolyBezierSegment() { } ////// /// public PolyBezierSegment(IEnumerablepoints, bool isStroked) { if (points == null) { throw new System.ArgumentNullException("points"); } Points = new PointCollection(points); IsStroked = isStroked; } /// /// /// internal PolyBezierSegment(IEnumerablepoints, bool isStroked, bool isSmoothJoin) { if (points == null) { throw new System.ArgumentNullException("points"); } Points = new PointCollection(points); IsStroked = isStroked; IsSmoothJoin = isSmoothJoin; } #endregion #region AddToFigure internal override void AddToFigure( Matrix matrix, // The transformation matrix PathFigure figure, // The figure to add to ref Point current) // Out: Segment endpoint, not transformed { PointCollection points = Points; if (points != null && points.Count >= 3) { if (matrix.IsIdentity) { figure.Segments.Add(this); } else { PointCollection copy = new PointCollection(); Point pt = new Point(); int count = points.Count; for (int i=0; i /// SerializeData - Serialize the contents of this Segment to the provided context. /// internal override void SerializeData(StreamGeometryContext ctx) { ctx.PolyBezierTo(Points, IsStroked, IsSmoothJoin); } #endregion } #endregion } // 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
- RemotingException.cs
- SchemaNames.cs
- SqlUtil.cs
- DbConnectionOptions.cs
- WindowsGraphics2.cs
- DetailsViewCommandEventArgs.cs
- WasEndpointConfigContainer.cs
- FontStyleConverter.cs
- PolyLineSegmentFigureLogic.cs
- PtsCache.cs
- MultipleCopiesCollection.cs
- CodeTypeReferenceSerializer.cs
- DataGridAutoFormatDialog.cs
- TextServicesHost.cs
- TextOutput.cs
- ImageMapEventArgs.cs
- TreeViewAutomationPeer.cs
- SiteMapNode.cs
- MSAAEventDispatcher.cs
- OAVariantLib.cs
- HScrollBar.cs
- SqlDataSourceFilteringEventArgs.cs
- RequestContextBase.cs
- MetadataUtil.cs
- DataGridViewRowHeaderCell.cs
- Misc.cs
- MimeMultiPart.cs
- ScriptingJsonSerializationSection.cs
- ResourceContainer.cs
- PtsCache.cs
- DesignerUtils.cs
- PreviewKeyDownEventArgs.cs
- BevelBitmapEffect.cs
- ErrorView.xaml.cs
- JsonReader.cs
- TranslateTransform.cs
- PermissionToken.cs
- StylusOverProperty.cs
- WorkflowPageSetupDialog.cs
- DBSqlParserTableCollection.cs
- GetIsBrowserClientRequest.cs
- HttpCachePolicyWrapper.cs
- HttpListenerRequest.cs
- XPathNodePointer.cs
- MultiPartWriter.cs
- ICspAsymmetricAlgorithm.cs
- CodeDefaultValueExpression.cs
- SafeCertificateStore.cs
- ObjectToIdCache.cs
- PageFunction.cs
- StrongNameKeyPair.cs
- basevalidator.cs
- EventProvider.cs
- VersionPair.cs
- DataSourceUtil.cs
- SecurityState.cs
- SmtpReplyReader.cs
- StandardCommands.cs
- ToolStripControlHost.cs
- TimerTable.cs
- DataListDesigner.cs
- DrawingAttributes.cs
- MetabaseServerConfig.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- CryptoApi.cs
- ListViewSortEventArgs.cs
- SafeEventLogReadHandle.cs
- SharedStatics.cs
- TextLine.cs
- TextFormatterContext.cs
- WindowsScrollBar.cs
- PresentationTraceSources.cs
- DesignerAutoFormat.cs
- RealProxy.cs
- SafeNativeMethodsOther.cs
- ZipIOModeEnforcingStream.cs
- OdbcDataReader.cs
- SerialPinChanges.cs
- DbConnectionPoolCounters.cs
- RequiredArgumentAttribute.cs
- PolyLineSegment.cs
- ApplyTemplatesAction.cs
- MailBnfHelper.cs
- HttpModuleActionCollection.cs
- _ScatterGatherBuffers.cs
- BaseParagraph.cs
- CompilerState.cs
- ChangeInterceptorAttribute.cs
- MultiByteCodec.cs
- WorkflowNamespace.cs
- WorkflowDebuggerSteppingAttribute.cs
- Vector3DCollectionValueSerializer.cs
- SqlColumnizer.cs
- WebPartTracker.cs
- StreamGeometry.cs
- SafeNativeMethodsMilCoreApi.cs
- SiteMapDataSource.cs
- _emptywebproxy.cs
- ScriptingScriptResourceHandlerSection.cs
- StreamWithDictionary.cs