Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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: // 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 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. //---------------------------------------------------------------------------- // // // 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 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
- ScriptServiceAttribute.cs
- SwitchLevelAttribute.cs
- RawAppCommandInputReport.cs
- PieceNameHelper.cs
- UrlParameterWriter.cs
- DataGridViewCell.cs
- StorageBasedPackageProperties.cs
- WmpBitmapEncoder.cs
- AuthenticationSection.cs
- PlanCompiler.cs
- CodeNamespace.cs
- nulltextcontainer.cs
- SubMenuStyle.cs
- MatrixConverter.cs
- Size3D.cs
- ListDictionaryInternal.cs
- DataGridClipboardCellContent.cs
- SmiEventSink_Default.cs
- Pens.cs
- Menu.cs
- ResXResourceReader.cs
- SecurityTokenProviderContainer.cs
- CompoundFileReference.cs
- DescendantOverDescendantQuery.cs
- XhtmlBasicCommandAdapter.cs
- WithStatement.cs
- FrameworkElement.cs
- ContextMarshalException.cs
- ProfileBuildProvider.cs
- AttachedPropertiesService.cs
- UriTemplateDispatchFormatter.cs
- CharEnumerator.cs
- LoadedOrUnloadedOperation.cs
- ISAPIApplicationHost.cs
- CustomLineCap.cs
- DetailsViewRow.cs
- SafeReadContext.cs
- DataBoundControlAdapter.cs
- DirectionalLight.cs
- StringFunctions.cs
- UrlMapping.cs
- DateTimeValueSerializer.cs
- DisplayMemberTemplateSelector.cs
- WebConfigurationHostFileChange.cs
- StylesEditorDialog.cs
- PrintPreviewControl.cs
- HuffmanTree.cs
- Comparer.cs
- NameValuePair.cs
- XsdDuration.cs
- AssemblyAttributesGoHere.cs
- SamlAuthorityBinding.cs
- RegistryExceptionHelper.cs
- HtmlElementEventArgs.cs
- _BasicClient.cs
- FontEmbeddingManager.cs
- HostUtils.cs
- XPathNode.cs
- Vector3D.cs
- _TransmitFileOverlappedAsyncResult.cs
- GrammarBuilderBase.cs
- XhtmlBasicValidationSummaryAdapter.cs
- AsmxEndpointPickerExtension.cs
- ValidationSummary.cs
- Translator.cs
- EmptyElement.cs
- WebHttpBindingCollectionElement.cs
- RelativeSource.cs
- WindowsPrincipal.cs
- TransferRequestHandler.cs
- ResourceDefaultValueAttribute.cs
- ModelFactory.cs
- DesignDataSource.cs
- SqlDataReaderSmi.cs
- SafeMarshalContext.cs
- BitmapEffectDrawingContextState.cs
- ParameterToken.cs
- AutomationPatternInfo.cs
- ThemeDirectoryCompiler.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- InstrumentationTracker.cs
- BulletedListEventArgs.cs
- PluralizationService.cs
- AppliedDeviceFiltersDialog.cs
- EdmMember.cs
- ImportCatalogPart.cs
- AutoCompleteStringCollection.cs
- CustomPopupPlacement.cs
- SecureStringHasher.cs
- SQLString.cs
- ListSortDescriptionCollection.cs
- XmlAnyElementAttribute.cs
- VirtualDirectoryMappingCollection.cs
- ICspAsymmetricAlgorithm.cs
- ChtmlCalendarAdapter.cs
- WizardSideBarListControlItemEventArgs.cs
- ImportStoreException.cs
- ListViewDeletedEventArgs.cs
- CacheMemory.cs
- IndentedWriter.cs