Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SchemaManager.cs
- X509SecurityTokenAuthenticator.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- Renderer.cs
- WmfPlaceableFileHeader.cs
- HtmlToClrEventProxy.cs
- ServiceReference.cs
- DbProviderFactoriesConfigurationHandler.cs
- BookmarkScopeManager.cs
- IBuiltInEvidence.cs
- EditCommandColumn.cs
- BufferedOutputAsyncStream.cs
- QueryParameter.cs
- ServiceMoniker.cs
- BaseDataListActionList.cs
- FlowDocumentPaginator.cs
- SiteMapDesignerDataSourceView.cs
- WebPartConnectVerb.cs
- ProfileSettingsCollection.cs
- WinFormsComponentEditor.cs
- EncodingDataItem.cs
- GridViewUpdateEventArgs.cs
- DSGeneratorProblem.cs
- InputLanguageManager.cs
- AlphabetConverter.cs
- TableCell.cs
- Enum.cs
- OracleDataAdapter.cs
- MultipartContentParser.cs
- XXXOnTypeBuilderInstantiation.cs
- InvokeHandlers.cs
- _CommandStream.cs
- PeerValidationBehavior.cs
- EventProviderBase.cs
- ServiceDescriptionContext.cs
- StringPropertyBuilder.cs
- BuildProvider.cs
- SqlDataSourceConfigureSortForm.cs
- XmlToDatasetMap.cs
- Int64Converter.cs
- VectorCollection.cs
- MsmqReceiveHelper.cs
- SafeRightsManagementPubHandle.cs
- CustomSignedXml.cs
- QualificationDataAttribute.cs
- MasterPage.cs
- PatternMatcher.cs
- Property.cs
- EventMappingSettings.cs
- cookiecollection.cs
- XmlUtil.cs
- ColumnWidthChangedEvent.cs
- Rotation3DAnimation.cs
- PackageRelationship.cs
- Avt.cs
- SamlAssertionKeyIdentifierClause.cs
- SoapReflectionImporter.cs
- XmlConvert.cs
- XmlSchemaComplexContent.cs
- CancellationToken.cs
- ConversionHelper.cs
- RootBrowserWindow.cs
- AsnEncodedData.cs
- NavigationExpr.cs
- StatusBarItemAutomationPeer.cs
- DataGridViewRowStateChangedEventArgs.cs
- ContextBase.cs
- CultureInfoConverter.cs
- ProcessModelSection.cs
- NullableIntSumAggregationOperator.cs
- FileEnumerator.cs
- WebSysDisplayNameAttribute.cs
- DictionaryTraceRecord.cs
- ParserOptions.cs
- ToolStripRenderer.cs
- ControlCollection.cs
- BamlLocalizableResource.cs
- NumericExpr.cs
- PasswordTextNavigator.cs
- StorageEntityContainerMapping.cs
- DBSchemaRow.cs
- MessageFormatterConverter.cs
- SamlAttribute.cs
- CryptoKeySecurity.cs
- cookiecollection.cs
- ParenthesizePropertyNameAttribute.cs
- FixedBufferAttribute.cs
- FormsAuthenticationCredentials.cs
- CompilerResults.cs
- Int32Rect.cs
- OracleCommand.cs
- DataGridTextBoxColumn.cs
- XmlAtomicValue.cs
- WebPartMenu.cs
- RequestCachePolicyConverter.cs
- EventLogEntry.cs
- While.cs
- ContainerFilterService.cs
- OrderByLifter.cs
- Substitution.cs