Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / PathSegmentCollection.cs / 1305600 / PathSegmentCollection.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // //--------------------------------------------------------------------------- using MS.Internal; using MS.Internal.PresentationCore; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.ComponentModel.Design.Serialization; using System.Text; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Markup; namespace System.Windows.Media { ////// The class definition for PathSegmentCollection /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] public sealed partial class PathSegmentCollection : Animatable, IList, IList{ /// /// Can serialze "this" to a string. /// This is true iff every segment is stroked. /// internal bool CanSerializeToString() { bool canSerialize = true; for (int i=0; i<_collection.Count; i++) { if (!_collection[i].IsStroked) { canSerialize = false; break; } } return canSerialize; } ////// Creates a string representation of this object based on the format string /// and IFormatProvider passed in. /// If the provider is null, the CurrentCulture is used. /// See the documentation for IFormattable for more information. /// ////// A string representation of this object. /// internal string ConvertToString(string format, IFormatProvider provider) { if (_collection.Count == 0) { return String.Empty; } StringBuilder str = new StringBuilder(); for (int i=0; i<_collection.Count; i++) { str.Append(_collection[i].ConvertToString(format, provider)); } return str.ToString(); } } } // 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
- SemaphoreSecurity.cs
- ToolStripLabel.cs
- XmlImplementation.cs
- PagesSection.cs
- MenuAdapter.cs
- CustomExpression.cs
- MSAAEventDispatcher.cs
- PageContent.cs
- ResourceExpressionBuilder.cs
- webbrowsersite.cs
- DefaultAuthorizationContext.cs
- SingleConverter.cs
- GPPOINT.cs
- StateManagedCollection.cs
- RelationshipDetailsCollection.cs
- LazyTextWriterCreator.cs
- DecimalAnimation.cs
- DataGridItem.cs
- QilInvoke.cs
- SafeBuffer.cs
- FunctionImportElement.cs
- ExecutionProperties.cs
- RectangleF.cs
- SimpleNameService.cs
- MetadataException.cs
- AddressAccessDeniedException.cs
- ListViewItem.cs
- ControlPropertyNameConverter.cs
- ParenthesizePropertyNameAttribute.cs
- PlatformCulture.cs
- StringHandle.cs
- Cursor.cs
- InsufficientMemoryException.cs
- HwndAppCommandInputProvider.cs
- ActivityExecutor.cs
- altserialization.cs
- Marshal.cs
- WindowsToolbarAsMenu.cs
- WindowShowOrOpenTracker.cs
- CustomSignedXml.cs
- CroppedBitmap.cs
- HttpHandlerAction.cs
- Deflater.cs
- RootBrowserWindowAutomationPeer.cs
- DeviceSpecificDesigner.cs
- PartManifestEntry.cs
- WindowCollection.cs
- NotifyInputEventArgs.cs
- XmlNullResolver.cs
- HandlerBase.cs
- GeometryGroup.cs
- HitTestWithPointDrawingContextWalker.cs
- BitmapEffectOutputConnector.cs
- TextServicesDisplayAttribute.cs
- StaticContext.cs
- CurrentTimeZone.cs
- WorkflowFileItem.cs
- DecimalAnimationUsingKeyFrames.cs
- OleDbWrapper.cs
- SoapElementAttribute.cs
- NGCSerializationManagerAsync.cs
- PropertyGridCommands.cs
- FixedSOMTableRow.cs
- DataGridTextBoxColumn.cs
- SequentialOutput.cs
- cookieexception.cs
- CodeIdentifier.cs
- ImageUrlEditor.cs
- CollectionChangeEventArgs.cs
- ProjectionRewriter.cs
- Queue.cs
- _NetRes.cs
- SimpleLine.cs
- FixedDocument.cs
- ConfigXmlReader.cs
- FloaterBaseParagraph.cs
- UnmanagedMarshal.cs
- MgmtConfigurationRecord.cs
- UIElementPropertyUndoUnit.cs
- EncodingTable.cs
- HttpHandlerAction.cs
- EventData.cs
- Calendar.cs
- BrushMappingModeValidation.cs
- BitmapEffectGroup.cs
- BaseDataList.cs
- DataSet.cs
- SQLBoolean.cs
- Message.cs
- GeometryDrawing.cs
- HttpListenerException.cs
- UnmanagedBitmapWrapper.cs
- ToolStripManager.cs
- BaseTemplateBuildProvider.cs
- HttpException.cs
- Code.cs
- Imaging.cs
- StreamGeometry.cs
- CancellationHandlerDesigner.cs
- VisualTreeFlattener.cs