Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Generated / PolyLineSegmentFigureLogic.cs / 1 / PolyLineSegmentFigureLogic.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: // windows\mil\codegen\mcg\generators\PolySegmentTemplate.cs // // Please see [....]/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 PolyLineSegment ////// PolyLineSegment /// public sealed partial class PolyLineSegment : PathSegment { #region Constructors ////// PolyLineSegment constructor /// public PolyLineSegment() { } ////// /// public PolyLineSegment(IEnumerablepoints, bool isStroked) { if (points == null) { throw new System.ArgumentNullException("points"); } Points = new PointCollection(points); IsStroked = isStroked; } /// /// /// internal PolyLineSegment(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 >= 1) { 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.PolyLineTo(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
- DataGridViewAutoSizeColumnModeEventArgs.cs
- StrokeNodeOperations2.cs
- ExtendedPropertiesHandler.cs
- SqlCacheDependency.cs
- WinFormsUtils.cs
- SQLGuid.cs
- HashMembershipCondition.cs
- PolyLineSegment.cs
- ProcessStartInfo.cs
- ParseChildrenAsPropertiesAttribute.cs
- EditingCoordinator.cs
- COM2ICategorizePropertiesHandler.cs
- BitSet.cs
- DataGridViewTextBoxColumn.cs
- DataServiceContext.cs
- PathGeometry.cs
- NavigationWindowAutomationPeer.cs
- ControlEvent.cs
- InlineObject.cs
- EncoderParameter.cs
- AffineTransform3D.cs
- ProcessManager.cs
- CodeAccessSecurityEngine.cs
- System.Data_BID.cs
- PageHandlerFactory.cs
- Paragraph.cs
- RegexTree.cs
- DataGridViewRowsRemovedEventArgs.cs
- PrivateFontCollection.cs
- BitmapEncoder.cs
- SecureStringHasher.cs
- LineServices.cs
- DbConnectionOptions.cs
- LogicalExpressionEditor.cs
- OdbcException.cs
- FixedSOMElement.cs
- ProtocolException.cs
- PlanCompiler.cs
- DataGridViewRowEventArgs.cs
- SHA512Managed.cs
- ColorContext.cs
- RenderData.cs
- Literal.cs
- Renderer.cs
- XmlIlVisitor.cs
- XPathSelfQuery.cs
- CursorInteropHelper.cs
- Thread.cs
- EdmFunction.cs
- CompiledQueryCacheKey.cs
- DefaultWorkflowLoaderService.cs
- StaticSiteMapProvider.cs
- DocumentApplicationJournalEntry.cs
- HttpCapabilitiesEvaluator.cs
- BaseUriHelper.cs
- ActivityDefaults.cs
- SiteIdentityPermission.cs
- SingleObjectCollection.cs
- Section.cs
- WorkflowQueue.cs
- TextTreeFixupNode.cs
- GroupDescription.cs
- HttpBindingExtension.cs
- HMACSHA512.cs
- UIElement3D.cs
- XsltCompileContext.cs
- AbsoluteQuery.cs
- SpeechAudioFormatInfo.cs
- WinInetCache.cs
- ToolBar.cs
- ClrProviderManifest.cs
- LocatorPartList.cs
- COAUTHINFO.cs
- PeerName.cs
- TdsParserSessionPool.cs
- StandardTransformFactory.cs
- ScriptingSectionGroup.cs
- CharUnicodeInfo.cs
- BaseValidator.cs
- XsdDuration.cs
- AlphabetConverter.cs
- Int32AnimationUsingKeyFrames.cs
- Aggregates.cs
- ScriptResourceAttribute.cs
- SystemTcpConnection.cs
- HttpDictionary.cs
- PrintDialog.cs
- TextFormatterImp.cs
- StateMachineAction.cs
- MetadataCollection.cs
- StringOutput.cs
- MenuTracker.cs
- CloudCollection.cs
- StoreContentChangedEventArgs.cs
- TraceUtility.cs
- QilStrConcat.cs
- StringFormat.cs
- SendSecurityHeaderElementContainer.cs
- PointValueSerializer.cs
- FormsAuthenticationTicket.cs