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
- ToolStripProgressBar.cs
- ColumnMap.cs
- Constants.cs
- Cursor.cs
- RemoteHelper.cs
- ReservationNotFoundException.cs
- EpmSyndicationContentSerializer.cs
- DataGridSortCommandEventArgs.cs
- HostedElements.cs
- PrintPreviewControl.cs
- SafeLibraryHandle.cs
- SessionStateContainer.cs
- InheritanceRules.cs
- RegexWorker.cs
- PrintEvent.cs
- ToolboxBitmapAttribute.cs
- ConfigXmlWhitespace.cs
- DefaultCompensation.cs
- DbParameterCollection.cs
- SvcMapFileSerializer.cs
- ListItemsCollectionEditor.cs
- GiveFeedbackEventArgs.cs
- GridView.cs
- SkewTransform.cs
- ConnectionConsumerAttribute.cs
- KeyGesture.cs
- PhysicalAddress.cs
- DataRowComparer.cs
- ModuleBuilderData.cs
- DataGridViewIntLinkedList.cs
- CalendarDataBindingHandler.cs
- FeatureSupport.cs
- Properties.cs
- PrintPreviewGraphics.cs
- DispatcherObject.cs
- WebPartManagerInternals.cs
- HttpCachePolicy.cs
- DataColumnPropertyDescriptor.cs
- FixedSOMElement.cs
- SingleTagSectionHandler.cs
- HttpCapabilitiesSectionHandler.cs
- XmlSerializerFaultFormatter.cs
- TableLayoutStyle.cs
- XhtmlBasicPanelAdapter.cs
- XmlElementAttributes.cs
- D3DImage.cs
- RemotingServices.cs
- UnsafeNativeMethods.cs
- FreezableOperations.cs
- PhonemeEventArgs.cs
- OracleString.cs
- DateTimeOffset.cs
- DataBinding.cs
- FixedDocumentPaginator.cs
- CompilationUtil.cs
- NativeMethodsOther.cs
- DataGridViewHitTestInfo.cs
- VoiceSynthesis.cs
- EntityDataSourceDesignerHelper.cs
- MethodExpr.cs
- ContentType.cs
- DependencyObjectProvider.cs
- Style.cs
- SmtpSection.cs
- URL.cs
- RelatedImageListAttribute.cs
- XmlDeclaration.cs
- BridgeDataReader.cs
- ByteStream.cs
- EncoderNLS.cs
- AttributeCollection.cs
- ObjectDataSourceFilteringEventArgs.cs
- XmlSerializerImportOptions.cs
- HyperLink.cs
- UInt64.cs
- GCHandleCookieTable.cs
- FragmentQueryProcessor.cs
- ObjectDataProvider.cs
- AppDomainShutdownMonitor.cs
- DocumentSchemaValidator.cs
- UITypeEditor.cs
- HtmlHead.cs
- XmlSchemaGroup.cs
- elementinformation.cs
- RegionIterator.cs
- UserCancellationException.cs
- JapaneseCalendar.cs
- StylusPointPropertyInfo.cs
- SoapCodeExporter.cs
- FormsAuthenticationCredentials.cs
- VectorKeyFrameCollection.cs
- RemoteWebConfigurationHost.cs
- Transactions.cs
- MarshalByRefObject.cs
- XPathArrayIterator.cs
- DoubleLinkListEnumerator.cs
- FlowDocumentPaginator.cs
- ScriptBehaviorDescriptor.cs
- SelectionItemProviderWrapper.cs
- ListViewAutomationPeer.cs