Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / PathSegmentCollection.cs / 1 / 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(); char separator = MS.Internal.TokenizerHelper.GetNumericListSeparator(provider); 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
- ServerValidateEventArgs.cs
- ConsoleCancelEventArgs.cs
- HttpChannelBindingToken.cs
- StorageEntitySetMapping.cs
- ExternalFile.cs
- X509SubjectKeyIdentifierClause.cs
- DiscoveryEndpoint.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- SQLByteStorage.cs
- TypeInitializationException.cs
- Span.cs
- LogicalTreeHelper.cs
- TextEditorParagraphs.cs
- TripleDES.cs
- _DynamicWinsockMethods.cs
- RunClient.cs
- EventListenerClientSide.cs
- GetParentChain.cs
- CompilationSection.cs
- JournalNavigationScope.cs
- QilCloneVisitor.cs
- CallbackBehaviorAttribute.cs
- MergePropertyDescriptor.cs
- FormatException.cs
- MethodToken.cs
- ManifestBasedResourceGroveler.cs
- Utility.cs
- ListViewDeleteEventArgs.cs
- Helpers.cs
- DataGridColumnReorderingEventArgs.cs
- OracleLob.cs
- BitmapEffectGeneralTransform.cs
- WebException.cs
- RequestNavigateEventArgs.cs
- MetadataItemSerializer.cs
- DetailsViewCommandEventArgs.cs
- IpcPort.cs
- Int16Animation.cs
- OdbcConnectionString.cs
- odbcmetadatafactory.cs
- ContextMenuService.cs
- XmlAnyAttributeAttribute.cs
- AssertFilter.cs
- ParameterReplacerVisitor.cs
- DataViewListener.cs
- AssemblyCache.cs
- CheckBoxField.cs
- ListViewInsertedEventArgs.cs
- StringOutput.cs
- SudsCommon.cs
- DictionaryTraceRecord.cs
- BrushValueSerializer.cs
- DirectoryNotFoundException.cs
- StickyNoteHelper.cs
- ZipPackage.cs
- BrowserDefinitionCollection.cs
- TransferMode.cs
- CDSCollectionETWBCLProvider.cs
- UnauthorizedAccessException.cs
- WindowPattern.cs
- StateChangeEvent.cs
- ClientSettingsProvider.cs
- CodeConstructor.cs
- Rules.cs
- TranslateTransform.cs
- TrackingProfile.cs
- KeyProperty.cs
- WindowsPrincipal.cs
- ListViewItemSelectionChangedEvent.cs
- ObjectItemAssemblyLoader.cs
- RequestCacheManager.cs
- RegisteredArrayDeclaration.cs
- GB18030Encoding.cs
- StatusStrip.cs
- BitConverter.cs
- Baml2006KnownTypes.cs
- LookupBindingPropertiesAttribute.cs
- SqlRowUpdatingEvent.cs
- PluralizationServiceUtil.cs
- TraceHwndHost.cs
- Monitor.cs
- DynamicRendererThreadManager.cs
- GridViewUpdatedEventArgs.cs
- ScrollItemPattern.cs
- Cursors.cs
- handlecollector.cs
- DesignerWebPartChrome.cs
- FrugalMap.cs
- ModelItemExtensions.cs
- TextEditorCopyPaste.cs
- DomNameTable.cs
- TextParentUndoUnit.cs
- EventDriven.cs
- DateTimeSerializationSection.cs
- MDIClient.cs
- ErasingStroke.cs
- ReceiveContext.cs
- UIElement3D.cs
- NoClickablePointException.cs
- SlipBehavior.cs