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
- SiteMapNodeItem.cs
- CombinedGeometry.cs
- QualificationDataItem.cs
- PropertyTabChangedEvent.cs
- FixedBufferAttribute.cs
- BinHexDecoder.cs
- ProjectionCamera.cs
- mediaeventargs.cs
- IndexerNameAttribute.cs
- TableLayoutColumnStyleCollection.cs
- HttpClientCertificate.cs
- OLEDB_Enum.cs
- DocumentCollection.cs
- FileSystemWatcher.cs
- ScriptingSectionGroup.cs
- RewritingSimplifier.cs
- ApplyTemplatesAction.cs
- ErrorWebPart.cs
- ComponentSerializationService.cs
- CodeSubDirectoriesCollection.cs
- MenuItem.cs
- Attachment.cs
- ConfigurationStrings.cs
- BitmapDecoder.cs
- ExpandSegmentCollection.cs
- ViewgenContext.cs
- PartDesigner.cs
- ListMarkerSourceInfo.cs
- FileVersionInfo.cs
- PeerCustomResolverBindingElement.cs
- ImageListStreamer.cs
- MaskedTextProvider.cs
- FilterableAttribute.cs
- UIAgentInitializationException.cs
- dataprotectionpermission.cs
- ShutDownListener.cs
- XmlSchemaComplexContent.cs
- XmlUTF8TextReader.cs
- ReferenceEqualityComparer.cs
- PerformanceCounters.cs
- ObjectConverter.cs
- SqlBulkCopyColumnMapping.cs
- ProxyHwnd.cs
- FileLogRecordEnumerator.cs
- SmiRecordBuffer.cs
- RelationshipManager.cs
- TreeViewDataItemAutomationPeer.cs
- XLinq.cs
- PackWebRequestFactory.cs
- SystemTcpStatistics.cs
- MsmqIntegrationSecurityElement.cs
- RichTextBoxDesigner.cs
- BinaryWriter.cs
- ServiceNameCollection.cs
- MobileSysDescriptionAttribute.cs
- WebPartConnectionsDisconnectVerb.cs
- MutexSecurity.cs
- ScriptResourceAttribute.cs
- _Rfc2616CacheValidators.cs
- AnnotationComponentManager.cs
- OciEnlistContext.cs
- MailMessageEventArgs.cs
- StatusBarItem.cs
- HostedHttpRequestAsyncResult.cs
- RangeValidator.cs
- GridViewEditEventArgs.cs
- TaskFileService.cs
- x509utils.cs
- MustUnderstandBehavior.cs
- RangeValidator.cs
- SafeNativeMethodsCLR.cs
- Transform3D.cs
- XmlDataCollection.cs
- ExecutionTracker.cs
- XmlEncoding.cs
- IdentifierCollection.cs
- EntityCommandExecutionException.cs
- GPStream.cs
- ExternalCalls.cs
- QilVisitor.cs
- Brush.cs
- HtmlMobileTextWriter.cs
- StringCollection.cs
- KerberosSecurityTokenProvider.cs
- LoginUtil.cs
- TextRangeSerialization.cs
- TransformerTypeCollection.cs
- RequestQueue.cs
- _ListenerResponseStream.cs
- DocumentViewerBase.cs
- Trace.cs
- RemotingSurrogateSelector.cs
- Emitter.cs
- PassportPrincipal.cs
- ToolBarButtonClickEvent.cs
- PublishLicense.cs
- RightsManagementPermission.cs
- TreeViewEvent.cs
- DataServiceException.cs
- UdpAnnouncementEndpoint.cs