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
- EntityDataSourceMemberPath.cs
- TextRenderer.cs
- Padding.cs
- shaperfactory.cs
- RemoteWebConfigurationHost.cs
- BamlBinaryReader.cs
- ApplicationHost.cs
- FreezableCollection.cs
- HttpException.cs
- WSFederationHttpBinding.cs
- InkCollectionBehavior.cs
- WebPartCollection.cs
- CompModHelpers.cs
- TextWriter.cs
- RepeatBehaviorConverter.cs
- EntityDataSourceDesignerHelper.cs
- ControlParameter.cs
- SerializationEventsCache.cs
- TemplatedMailWebEventProvider.cs
- SizeConverter.cs
- PageCatalogPart.cs
- TextRunProperties.cs
- X509Utils.cs
- ObjectDataSource.cs
- EngineSiteSapi.cs
- GeneralTransform3DGroup.cs
- unsafenativemethodsother.cs
- WorkflowMarkupSerializationProvider.cs
- CharacterMetricsDictionary.cs
- TextParagraphProperties.cs
- ImpersonateTokenRef.cs
- ComplexLine.cs
- URLEditor.cs
- DataBoundControlParameterTarget.cs
- CompoundFileReference.cs
- ColumnWidthChangingEvent.cs
- PointAnimationClockResource.cs
- DataKey.cs
- LogPolicy.cs
- BitmapMetadataBlob.cs
- PointLight.cs
- UnsafeNativeMethods.cs
- SAPICategories.cs
- OrderToken.cs
- EventLog.cs
- ExpandedProjectionNode.cs
- DbTypeMap.cs
- EventRouteFactory.cs
- CommandField.cs
- PathSegment.cs
- PersonalizablePropertyEntry.cs
- IDQuery.cs
- wgx_exports.cs
- JpegBitmapEncoder.cs
- safemediahandle.cs
- TableDetailsCollection.cs
- OutputCacheProfile.cs
- HWStack.cs
- Parameter.cs
- TextBlockAutomationPeer.cs
- ApplicationDirectory.cs
- TransactionManager.cs
- LayoutTableCell.cs
- CustomAttributeFormatException.cs
- XmlObjectSerializerWriteContext.cs
- VirtualPathUtility.cs
- AutomationPatternInfo.cs
- RenderData.cs
- DataGridComponentEditor.cs
- ListViewPagedDataSource.cs
- CookielessData.cs
- Propagator.ExtentPlaceholderCreator.cs
- HttpServerUtilityWrapper.cs
- Double.cs
- EntityDataSourceDataSelectionPanel.cs
- UserUseLicenseDictionaryLoader.cs
- XPathException.cs
- UnorderedHashRepartitionStream.cs
- CategoryNameCollection.cs
- GlyphElement.cs
- WebConvert.cs
- HtmlInputRadioButton.cs
- SelectionRange.cs
- Visual3DCollection.cs
- OleDbMetaDataFactory.cs
- SynchronizingStream.cs
- ErrorEventArgs.cs
- IsolatedStorageSecurityState.cs
- BaseTreeIterator.cs
- RNGCryptoServiceProvider.cs
- SimpleModelProvider.cs
- PersonalizationProvider.cs
- Timer.cs
- SemanticResolver.cs
- DefaultValueConverter.cs
- RijndaelManaged.cs
- UDPClient.cs
- ReadOnlyCollectionBase.cs
- ControlValuePropertyAttribute.cs
- Viewport3DAutomationPeer.cs