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
- TimersDescriptionAttribute.cs
- PeerCollaboration.cs
- SchemaElementDecl.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- HtmlTernaryTree.cs
- GridViewAutomationPeer.cs
- SimpleExpression.cs
- PartialTrustHelpers.cs
- CookieHandler.cs
- TraceLog.cs
- SrgsItemList.cs
- SamlSubjectStatement.cs
- QueryResults.cs
- WorkflowViewStateService.cs
- OleDbCommandBuilder.cs
- Journaling.cs
- UnsafeMethods.cs
- PrivilegeNotHeldException.cs
- DataGridViewCellStyle.cs
- SqlConnectionPoolGroupProviderInfo.cs
- Expressions.cs
- UIHelper.cs
- _SecureChannel.cs
- OracleInternalConnection.cs
- LayoutEditorPart.cs
- LocationUpdates.cs
- RelAssertionDirectKeyIdentifierClause.cs
- BinaryObjectInfo.cs
- SiteMapProvider.cs
- BitmapEffectDrawing.cs
- MultidimensionalArrayItemReference.cs
- MultipleViewPattern.cs
- MSAANativeProvider.cs
- DesignerForm.cs
- OutputCacheModule.cs
- DocumentViewerConstants.cs
- XPathAncestorIterator.cs
- PartitionResolver.cs
- XmlSchemaSimpleContent.cs
- OracleDateTime.cs
- XmlObjectSerializerReadContext.cs
- ModuleConfigurationInfo.cs
- DbConnectionPoolIdentity.cs
- PlacementWorkspace.cs
- DisposableCollectionWrapper.cs
- TreeNodeSelectionProcessor.cs
- SafeRightsManagementQueryHandle.cs
- ComponentCommands.cs
- SaveFileDialog.cs
- EmbeddedMailObject.cs
- Tuple.cs
- ClientRuntimeConfig.cs
- XPathNodeList.cs
- ToolboxComponentsCreatedEventArgs.cs
- ServiceOperationWrapper.cs
- EventLogInformation.cs
- ConfigXmlWhitespace.cs
- ProgressBarRenderer.cs
- UntypedNullExpression.cs
- ICollection.cs
- ScriptServiceAttribute.cs
- PrintDocument.cs
- RightsManagementEncryptionTransform.cs
- ExpressionBindingCollection.cs
- PolygonHotSpot.cs
- CryptographicAttribute.cs
- ContainerUIElement3D.cs
- XmlResolver.cs
- SqlBinder.cs
- SafeFileHandle.cs
- CommandBindingCollection.cs
- Mouse.cs
- AuthenticationServiceManager.cs
- DivideByZeroException.cs
- XPathScanner.cs
- Group.cs
- TextTabProperties.cs
- HttpResponseInternalWrapper.cs
- CacheChildrenQuery.cs
- ConsumerConnectionPointCollection.cs
- XmlNodeComparer.cs
- WebAdminConfigurationHelper.cs
- _UncName.cs
- DerivedKeySecurityToken.cs
- processwaithandle.cs
- LightweightCodeGenerator.cs
- _SafeNetHandles.cs
- UnsafeNativeMethods.cs
- Point4DValueSerializer.cs
- VBCodeProvider.cs
- AsyncOperation.cs
- _ListenerResponseStream.cs
- COSERVERINFO.cs
- ResourceDescriptionAttribute.cs
- WaitHandle.cs
- ProviderUtil.cs
- TraceData.cs
- ConnectionsZoneAutoFormat.cs
- XmlValueConverter.cs
- ProfileGroupSettings.cs