Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Generated / PolyQuadraticBezierSegmentFigureLogic.cs / 1305600 / PolyQuadraticBezierSegmentFigureLogic.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 PolyQuadraticBezierSegment ////// PolyQuadraticBezierSegment /// public sealed partial class PolyQuadraticBezierSegment : PathSegment { #region Constructors ////// PolyQuadraticBezierSegment constructor /// public PolyQuadraticBezierSegment() { } ////// /// public PolyQuadraticBezierSegment(IEnumerablepoints, bool isStroked) { if (points == null) { throw new System.ArgumentNullException("points"); } Points = new PointCollection(points); IsStroked = isStroked; } /// /// /// internal PolyQuadraticBezierSegment(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 >= 2) { 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.PolyQuadraticBezierTo(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
- RoutingConfiguration.cs
- BrowserDefinition.cs
- Canonicalizers.cs
- GenericTypeParameterConverter.cs
- EventDescriptor.cs
- SafeNativeMethods.cs
- NativeRightsManagementAPIsStructures.cs
- BackStopAuthenticationModule.cs
- EntityTypeBase.cs
- PropertyPath.cs
- TypeCodeDomSerializer.cs
- Rect.cs
- DataGridViewRowCollection.cs
- WorkflowPrinting.cs
- DataSourceView.cs
- SystemMulticastIPAddressInformation.cs
- RefreshPropertiesAttribute.cs
- ReferencedAssemblyResolver.cs
- StringConverter.cs
- SessionSwitchEventArgs.cs
- Nullable.cs
- Geometry3D.cs
- SafeWaitHandle.cs
- Win32.cs
- PerformanceCountersElement.cs
- Object.cs
- CacheAxisQuery.cs
- XmlAttributeAttribute.cs
- IisHelper.cs
- AsyncStreamReader.cs
- XD.cs
- AccessibleObject.cs
- PathSegmentCollection.cs
- RemotingException.cs
- HtmlLink.cs
- cookiecontainer.cs
- PageAsyncTask.cs
- XmlDataSourceNodeDescriptor.cs
- WebConfigurationHostFileChange.cs
- DataListCommandEventArgs.cs
- RemotingServices.cs
- diagnosticsswitches.cs
- WinEventQueueItem.cs
- ListBoxItem.cs
- ErrorInfoXmlDocument.cs
- VerticalAlignConverter.cs
- IndexedString.cs
- Triplet.cs
- InputScopeManager.cs
- EncoderBestFitFallback.cs
- SupportsEventValidationAttribute.cs
- XamlFilter.cs
- ToolboxItemAttribute.cs
- COM2PictureConverter.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SplayTreeNode.cs
- WebPartMinimizeVerb.cs
- Marshal.cs
- HtmlInputFile.cs
- PerformanceCounters.cs
- AutomationElement.cs
- ElementsClipboardData.cs
- DataGridViewLayoutData.cs
- HtmlLiteralTextAdapter.cs
- WeakEventManager.cs
- FormsAuthenticationUserCollection.cs
- Image.cs
- CustomPopupPlacement.cs
- ImageAttributes.cs
- DataGridViewCellValueEventArgs.cs
- SetState.cs
- DATA_BLOB.cs
- QuestionEventArgs.cs
- SiteMapPath.cs
- ConfigXmlText.cs
- DLinqTableProvider.cs
- RectangleHotSpot.cs
- RequestTimeoutManager.cs
- File.cs
- FormViewRow.cs
- XmlLoader.cs
- ScriptManager.cs
- LogConverter.cs
- oledbmetadatacolumnnames.cs
- MulticastNotSupportedException.cs
- Oid.cs
- ConfigurationStrings.cs
- GrammarBuilder.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- TableRowCollection.cs
- MinMaxParagraphWidth.cs
- EntityUtil.cs
- StringDictionaryWithComparer.cs
- RegexCharClass.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- AuthenticationConfig.cs
- MimeTypePropertyAttribute.cs
- MarkedHighlightComponent.cs
- DropShadowEffect.cs
- CngAlgorithm.cs