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
- QueryTaskGroupState.cs
- SerializableAttribute.cs
- DataGridItem.cs
- Rijndael.cs
- Codec.cs
- EdmTypeAttribute.cs
- ScaleTransform.cs
- FontEmbeddingManager.cs
- ClassValidator.cs
- IisHelper.cs
- CssTextWriter.cs
- DataObject.cs
- Exception.cs
- ObjectStorage.cs
- AVElementHelper.cs
- ScriptingJsonSerializationSection.cs
- Clause.cs
- Error.cs
- FilterException.cs
- ServicePointManager.cs
- FlowLayoutPanel.cs
- EventTrigger.cs
- ReadOnlyNameValueCollection.cs
- ResourceProviderFactory.cs
- CompoundFileStreamReference.cs
- TableChangeProcessor.cs
- WebPartManagerDesigner.cs
- CodeTypeDeclaration.cs
- ProgressBarRenderer.cs
- SingleAnimation.cs
- SoapRpcMethodAttribute.cs
- ImageMetadata.cs
- SiteMapProvider.cs
- FontNamesConverter.cs
- WpfPayload.cs
- TypeInformation.cs
- FixedNode.cs
- CopyEncoder.cs
- ProviderManager.cs
- CounterSampleCalculator.cs
- Set.cs
- WebBrowserContainer.cs
- EntityDataSourceState.cs
- DataGridTextBox.cs
- X509Utils.cs
- odbcmetadatacollectionnames.cs
- Cursors.cs
- BindingContext.cs
- XmlDigitalSignatureProcessor.cs
- VersionedStreamOwner.cs
- AdRotator.cs
- PerformanceCounterPermissionEntry.cs
- ServiceContractGenerationContext.cs
- _SafeNetHandles.cs
- LinkedList.cs
- Win32KeyboardDevice.cs
- ColumnMapTranslator.cs
- GridViewColumnCollection.cs
- NativeObjectSecurity.cs
- DoubleConverter.cs
- SerializerWriterEventHandlers.cs
- ResourceCodeDomSerializer.cs
- SingleAnimationUsingKeyFrames.cs
- ListenDesigner.cs
- ModelTreeEnumerator.cs
- DataSysAttribute.cs
- GridEntry.cs
- FileReservationCollection.cs
- WSDualHttpBinding.cs
- AuthorizationRule.cs
- BaseResourcesBuildProvider.cs
- DebuggerAttributes.cs
- Clause.cs
- DataStreams.cs
- SqlFunctionAttribute.cs
- DataBoundControlParameterTarget.cs
- Transform3D.cs
- PropertySourceInfo.cs
- SymbolTable.cs
- SignatureHelper.cs
- DialogResultConverter.cs
- InheritedPropertyChangedEventArgs.cs
- CollaborationHelperFunctions.cs
- ItemType.cs
- XamlTreeBuilder.cs
- PageAsyncTask.cs
- ResourceContainer.cs
- RegexNode.cs
- GridViewColumn.cs
- TrustSection.cs
- MergeFailedEvent.cs
- Parameter.cs
- SchemaManager.cs
- SimpleTextLine.cs
- LazyTextWriterCreator.cs
- LocatorGroup.cs
- DataBindingCollection.cs
- SerialErrors.cs
- NameTable.cs
- AppDomainProtocolHandler.cs