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
- ReflectionPermission.cs
- ToolStripPanelRow.cs
- HelpInfo.cs
- MasterPageBuildProvider.cs
- StateBag.cs
- ProjectionCamera.cs
- FunctionNode.cs
- ZipFileInfo.cs
- ClientFormsIdentity.cs
- CannotUnloadAppDomainException.cs
- WebZone.cs
- EncoderBestFitFallback.cs
- SystemParameters.cs
- DirectoryNotFoundException.cs
- RecipientIdentity.cs
- SettingsPropertyIsReadOnlyException.cs
- ExtensionDataObject.cs
- ContractValidationHelper.cs
- AsyncOperationLifetimeManager.cs
- DiscardableAttribute.cs
- EventData.cs
- SingleConverter.cs
- HtmlEncodedRawTextWriter.cs
- ListViewItemCollectionEditor.cs
- TemplateBindingExpression.cs
- WebHttpDispatchOperationSelector.cs
- Random.cs
- ConfigurationSection.cs
- WpfPayload.cs
- DictionaryEntry.cs
- WaitForChangedResult.cs
- ReadOnlyObservableCollection.cs
- FolderLevelBuildProvider.cs
- XmlnsDictionary.cs
- AssociationTypeEmitter.cs
- RootBrowserWindowAutomationPeer.cs
- MapPathBasedVirtualPathProvider.cs
- TextEditorLists.cs
- WinFormsSecurity.cs
- DbUpdateCommandTree.cs
- DesignerRegion.cs
- SystemSounds.cs
- TargetControlTypeAttribute.cs
- XmlArrayAttribute.cs
- GridItem.cs
- BreadCrumbTextConverter.cs
- MaskPropertyEditor.cs
- AssemblyAttributes.cs
- KernelTypeValidation.cs
- CodeThrowExceptionStatement.cs
- EntryIndex.cs
- Funcletizer.cs
- VectorCollection.cs
- SmiMetaDataProperty.cs
- XMLDiffLoader.cs
- ISAPIApplicationHost.cs
- WebPartHelpVerb.cs
- IsolatedStorageFileStream.cs
- ModelChangedEventArgsImpl.cs
- HtmlControl.cs
- COM2TypeInfoProcessor.cs
- AssociationEndMember.cs
- HttpListener.cs
- EventLogPermission.cs
- RenameRuleObjectDialog.cs
- TouchPoint.cs
- XmlDocumentType.cs
- NativeMethods.cs
- SQLGuidStorage.cs
- VersionedStream.cs
- SessionStateSection.cs
- ScriptingRoleServiceSection.cs
- XPathPatternParser.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- SmtpMail.cs
- TraceSwitch.cs
- HostedElements.cs
- TableAdapterManagerNameHandler.cs
- DataBoundLiteralControl.cs
- UpdatePanel.cs
- ByeOperationAsyncResult.cs
- ArgumentElement.cs
- ReturnType.cs
- DesignerHierarchicalDataSourceView.cs
- CodeTypeMember.cs
- Sql8ExpressionRewriter.cs
- DecimalAnimationUsingKeyFrames.cs
- MultiTrigger.cs
- ToolZoneDesigner.cs
- UnsafeNetInfoNativeMethods.cs
- SynchronizedCollection.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- OpCellTreeNode.cs
- BaseResourcesBuildProvider.cs
- ConfigurationManagerInternalFactory.cs
- DataComponentGenerator.cs
- messageonlyhwndwrapper.cs
- TypeUtil.cs
- LeaseManager.cs
- CircleHotSpot.cs