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
- Avt.cs
- linebase.cs
- EDesignUtil.cs
- TabControlCancelEvent.cs
- AssemblyUtil.cs
- TrustSection.cs
- CatalogPartChrome.cs
- ListViewCommandEventArgs.cs
- ToolStripSplitButton.cs
- SqlCacheDependencyDatabaseCollection.cs
- HtmlString.cs
- BrowserTree.cs
- SharedConnectionInfo.cs
- CaseExpr.cs
- DispatcherProcessingDisabled.cs
- PropertyTab.cs
- DataServices.cs
- QueryNode.cs
- EventSinkActivity.cs
- DefaultTextStoreTextComposition.cs
- DataGridViewSelectedRowCollection.cs
- WorkflowServiceBuildProvider.cs
- GetPageNumberCompletedEventArgs.cs
- NavigationHelper.cs
- util.cs
- ConnectionPoint.cs
- RSAPKCS1SignatureDeformatter.cs
- ArithmeticException.cs
- XmlEnumAttribute.cs
- BindStream.cs
- DivideByZeroException.cs
- ListBoxChrome.cs
- SetterTriggerConditionValueConverter.cs
- ConfigViewGenerator.cs
- ItemType.cs
- JsonWriter.cs
- AQNBuilder.cs
- FormsAuthenticationEventArgs.cs
- GACIdentityPermission.cs
- SelectedDatesCollection.cs
- CustomAttributeBuilder.cs
- Stacktrace.cs
- SoapIgnoreAttribute.cs
- ComplexPropertyEntry.cs
- TimeSpanSecondsConverter.cs
- SetStateEventArgs.cs
- TypedReference.cs
- TdsParserStateObject.cs
- RepeaterItem.cs
- ValueQuery.cs
- SqlAliaser.cs
- SafeBitVector32.cs
- WebBrowserContainer.cs
- CompressionTracing.cs
- ToolStripContentPanelDesigner.cs
- FormatException.cs
- OracleConnectionString.cs
- InvalidEnumArgumentException.cs
- DependentList.cs
- WebOperationContext.cs
- TextPenaltyModule.cs
- XslVisitor.cs
- Helpers.cs
- DynamicHyperLink.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- BrowsableAttribute.cs
- FusionWrap.cs
- Button.cs
- CryptoConfig.cs
- MetadataItem.cs
- EventlogProvider.cs
- ToolStripContainerActionList.cs
- SHA384CryptoServiceProvider.cs
- Object.cs
- _UriSyntax.cs
- SelectedDatesCollection.cs
- StrongNameIdentityPermission.cs
- TextParagraphProperties.cs
- SpellerStatusTable.cs
- SafeReadContext.cs
- SystemIcons.cs
- Misc.cs
- TypefaceMap.cs
- CommonRemoteMemoryBlock.cs
- DataGridViewComboBoxColumn.cs
- TogglePattern.cs
- ApplicationServicesHostFactory.cs
- InternalConfigSettingsFactory.cs
- _OverlappedAsyncResult.cs
- SystemException.cs
- ExcCanonicalXml.cs
- ManualWorkflowSchedulerService.cs
- CodeValidator.cs
- BinaryUtilClasses.cs
- PasswordTextContainer.cs
- DataGridViewCellEventArgs.cs
- SchemaAttDef.cs
- BulletDecorator.cs
- SystemDiagnosticsSection.cs
- ToolStripHighContrastRenderer.cs