Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- ListViewItemSelectionChangedEvent.cs
- PrintPageEvent.cs
- AppDomainCompilerProxy.cs
- TrackBarDesigner.cs
- PageFunction.cs
- HtmlElementCollection.cs
- ListManagerBindingsCollection.cs
- NamespaceQuery.cs
- BitmapMetadataEnumerator.cs
- PreviewKeyDownEventArgs.cs
- ZipIOLocalFileHeader.cs
- ExpressionBindingsDialog.cs
- TableProviderWrapper.cs
- EdgeModeValidation.cs
- unsafenativemethodsother.cs
- MILUtilities.cs
- FreeFormDesigner.cs
- XmlTextAttribute.cs
- XmlSchemaObjectTable.cs
- FunctionCommandText.cs
- ReaderWriterLock.cs
- HtmlForm.cs
- PropertyChangedEventArgs.cs
- precedingsibling.cs
- MeasurementDCInfo.cs
- Viewport3DVisual.cs
- CookielessHelper.cs
- TraceInternal.cs
- WinEventTracker.cs
- FormsAuthentication.cs
- CorrelationValidator.cs
- Funcletizer.cs
- PolyLineSegmentFigureLogic.cs
- WindowsGraphics2.cs
- OracleCommand.cs
- CombinedHttpChannel.cs
- AttributeAction.cs
- BitmapFrame.cs
- PointKeyFrameCollection.cs
- DataGridToolTip.cs
- Error.cs
- ChildTable.cs
- UIElementIsland.cs
- ellipse.cs
- BulletChrome.cs
- StorageMappingItemLoader.cs
- SelectionProcessor.cs
- isolationinterop.cs
- WebRequestModuleElementCollection.cs
- PersonalizationStateInfo.cs
- PackagingUtilities.cs
- LinqDataSourceValidationException.cs
- Rotation3DAnimationUsingKeyFrames.cs
- NestedContainer.cs
- CacheMemory.cs
- XmlTypeMapping.cs
- ConfigXmlAttribute.cs
- HttpCapabilitiesEvaluator.cs
- WindowsTooltip.cs
- ReliableChannelBinder.cs
- SystemIPInterfaceProperties.cs
- HttpRuntimeSection.cs
- Enum.cs
- MarkupWriter.cs
- CodeRemoveEventStatement.cs
- AuthStoreRoleProvider.cs
- ViewKeyConstraint.cs
- AlternateViewCollection.cs
- TCPListener.cs
- ConfigXmlSignificantWhitespace.cs
- StyleBamlTreeBuilder.cs
- DBNull.cs
- SqlBulkCopy.cs
- InputBinder.cs
- WorkflowPageSetupDialog.cs
- XmlSchemaInfo.cs
- EdmItemError.cs
- MessageRpc.cs
- ZoomingMessageFilter.cs
- SQLDateTimeStorage.cs
- DynamicPhysicalDiscoSearcher.cs
- MultiByteCodec.cs
- ClientScriptManager.cs
- HttpHandlerAction.cs
- BaseParagraph.cs
- System.Data_BID.cs
- TextEncodedRawTextWriter.cs
- NumericExpr.cs
- _HeaderInfo.cs
- CqlParserHelpers.cs
- ToolStripComboBox.cs
- ImageField.cs
- ToolBarButtonClickEvent.cs
- BlobPersonalizationState.cs
- QilSortKey.cs
- NameValueConfigurationElement.cs
- NTAccount.cs
- PipelineModuleStepContainer.cs
- ByteKeyFrameCollection.cs
- HostSecurityManager.cs