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
- DataGridViewCheckBoxCell.cs
- DeviceSpecificChoiceCollection.cs
- ImmutableObjectAttribute.cs
- RenderTargetBitmap.cs
- HeaderCollection.cs
- thaishape.cs
- BitmapEffectDrawingContextWalker.cs
- SspiSafeHandles.cs
- ConstraintCollection.cs
- ViewStateException.cs
- EdmItemError.cs
- ToolZone.cs
- ListBindingConverter.cs
- ProjectionCamera.cs
- CheckedListBox.cs
- EndPoint.cs
- WebPartUtil.cs
- Char.cs
- HttpConfigurationContext.cs
- MetadataCache.cs
- SettingsPropertyWrongTypeException.cs
- WebPartDisplayModeEventArgs.cs
- LoadedEvent.cs
- HtmlEmptyTagControlBuilder.cs
- PageAdapter.cs
- Semaphore.cs
- XhtmlConformanceSection.cs
- PairComparer.cs
- wmiutil.cs
- Attributes.cs
- HostProtectionException.cs
- CanonicalizationDriver.cs
- ISAPIApplicationHost.cs
- ThemeDirectoryCompiler.cs
- Splitter.cs
- HtmlControl.cs
- SemanticBasicElement.cs
- MdiWindowListStrip.cs
- ImageDrawing.cs
- ToolboxComponentsCreatingEventArgs.cs
- WmlMobileTextWriter.cs
- PrivilegeNotHeldException.cs
- WebPartHeaderCloseVerb.cs
- Control.cs
- contentDescriptor.cs
- DataGridViewCellLinkedList.cs
- MobileUserControl.cs
- RepeaterCommandEventArgs.cs
- InvokeHandlers.cs
- CollectionBuilder.cs
- AbstractDataSvcMapFileLoader.cs
- ConsoleKeyInfo.cs
- DropTarget.cs
- NullableIntMinMaxAggregationOperator.cs
- SignatureDescription.cs
- WebServicesInteroperability.cs
- RoleManagerSection.cs
- Html32TextWriter.cs
- HostnameComparisonMode.cs
- FileUpload.cs
- FixUpCollection.cs
- ConnectionProviderAttribute.cs
- CharacterHit.cs
- LinqDataSourceStatusEventArgs.cs
- Memoizer.cs
- DataBindingsDialog.cs
- MetadataUtil.cs
- ContainerUtilities.cs
- CodeActivityMetadata.cs
- MatrixKeyFrameCollection.cs
- CleanUpVirtualizedItemEventArgs.cs
- PasswordBoxAutomationPeer.cs
- AdornerPresentationContext.cs
- TypeNameConverter.cs
- XmlSchemaSubstitutionGroup.cs
- TextProperties.cs
- ListMarkerLine.cs
- BitmapImage.cs
- GroupBoxAutomationPeer.cs
- XmlNodeComparer.cs
- DataFormats.cs
- ProgressBar.cs
- CodeObjectCreateExpression.cs
- Int16Storage.cs
- ToolZone.cs
- CodeIdentifier.cs
- PrtCap_Reader.cs
- DrawingContextDrawingContextWalker.cs
- QualifiedCellIdBoolean.cs
- Figure.cs
- CornerRadius.cs
- translator.cs
- CodeTypeMemberCollection.cs
- SmtpReplyReaderFactory.cs
- DrawTreeNodeEventArgs.cs
- MatrixConverter.cs
- HierarchicalDataSourceControl.cs
- DataBindingHandlerAttribute.cs
- DiscoveryMessageSequenceGenerator.cs
- prompt.cs