Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SystemEvents.cs
- AddInDeploymentState.cs
- TrackingWorkflowEventArgs.cs
- TextFormatter.cs
- ColorConverter.cs
- StickyNoteContentControl.cs
- ListDictionaryInternal.cs
- ProgressBarAutomationPeer.cs
- DoubleCollection.cs
- Timer.cs
- RouteParametersHelper.cs
- DataSourceControl.cs
- TransformerInfoCollection.cs
- HeaderCollection.cs
- InternalsVisibleToAttribute.cs
- SimpleRecyclingCache.cs
- RequestDescription.cs
- WebBrowserContainer.cs
- ToolStripMenuItem.cs
- BamlTreeMap.cs
- GeneralTransformCollection.cs
- SqlDataSourceConfigureSortForm.cs
- TreeNodeBinding.cs
- AsyncResult.cs
- FrugalList.cs
- QilXmlReader.cs
- SmtpNetworkElement.cs
- DataRecord.cs
- RecognizedAudio.cs
- LocatorManager.cs
- CustomValidator.cs
- OleDbError.cs
- SettingsPropertyCollection.cs
- DataGridTableCollection.cs
- WorkflowValidationFailedException.cs
- RegisteredScript.cs
- DbConnectionPoolGroup.cs
- _SingleItemRequestCache.cs
- DataBindingHandlerAttribute.cs
- SystemIPAddressInformation.cs
- Visual.cs
- XmlWellformedWriter.cs
- COM2Enum.cs
- Screen.cs
- EventListenerClientSide.cs
- WebPartAddingEventArgs.cs
- DataSourceView.cs
- ReferencedCollectionType.cs
- SiteMapPathDesigner.cs
- OdbcCommandBuilder.cs
- Subtract.cs
- ApplicationManager.cs
- CommandExpr.cs
- CategoryGridEntry.cs
- KeyValueConfigurationCollection.cs
- FontStretch.cs
- SqlRowUpdatingEvent.cs
- HtmlTableRowCollection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DesignerCategoryAttribute.cs
- PrintDocument.cs
- FieldBuilder.cs
- ListControlBuilder.cs
- TextSimpleMarkerProperties.cs
- XmlDownloadManager.cs
- Char.cs
- followingquery.cs
- _ProxyRegBlob.cs
- XmlAttributeOverrides.cs
- UpdateManifestForBrowserApplication.cs
- _CommandStream.cs
- TemplateControl.cs
- cryptoapiTransform.cs
- FontDriver.cs
- OutputScope.cs
- Cursors.cs
- _AutoWebProxyScriptWrapper.cs
- AppSettingsReader.cs
- NetTcpBindingElement.cs
- KeyTimeConverter.cs
- CodeNamespace.cs
- CodeValidator.cs
- WorkflowHostingEndpoint.cs
- ClaimSet.cs
- TextBox.cs
- EmissiveMaterial.cs
- PublisherMembershipCondition.cs
- BackgroundWorker.cs
- RectAnimationClockResource.cs
- PasswordPropertyTextAttribute.cs
- ObservableDictionary.cs
- IndentTextWriter.cs
- ConfigUtil.cs
- TabControl.cs
- DependencyPropertyConverter.cs
- ListControlStringCollectionEditor.cs
- XmlWrappingReader.cs
- EmptyStringExpandableObjectConverter.cs
- SoapServerProtocol.cs
- MembershipSection.cs