Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- XmlSchemaAttributeGroup.cs
- Win32SafeHandles.cs
- dtdvalidator.cs
- Inline.cs
- TemplatedAdorner.cs
- ShaperBuffers.cs
- MultiView.cs
- Button.cs
- StringArrayConverter.cs
- OleDbEnumerator.cs
- XPathSelfQuery.cs
- AsyncPostBackTrigger.cs
- DataGridCellItemAutomationPeer.cs
- EntityAdapter.cs
- CustomErrorsSectionWrapper.cs
- Base64Decoder.cs
- ServerProtocol.cs
- PointAnimationBase.cs
- IPCCacheManager.cs
- SecureEnvironment.cs
- StatusInfoItem.cs
- SharedPersonalizationStateInfo.cs
- LoadWorkflowAsyncResult.cs
- CounterNameConverter.cs
- TextTreeRootTextBlock.cs
- IDictionary.cs
- RouteValueExpressionBuilder.cs
- RenameRuleObjectDialog.cs
- DefaultPrintController.cs
- Rect3DValueSerializer.cs
- OutArgument.cs
- UIElementCollection.cs
- ForwardPositionQuery.cs
- IteratorDescriptor.cs
- AuthenticationSection.cs
- TreeViewBindingsEditorForm.cs
- TPLETWProvider.cs
- DescendantBaseQuery.cs
- WaitHandle.cs
- MailMessage.cs
- BuildManagerHost.cs
- PolygonHotSpot.cs
- XamlFrame.cs
- ItemAutomationPeer.cs
- CollectionViewGroupRoot.cs
- XmlEventCache.cs
- ResourceAttributes.cs
- RunInstallerAttribute.cs
- RectValueSerializer.cs
- DataTableReader.cs
- HyperLink.cs
- CompilerCollection.cs
- PerformanceCounterPermissionAttribute.cs
- DataSetUtil.cs
- RegistrationServices.cs
- MarshalByRefObject.cs
- KeyNotFoundException.cs
- ButtonRenderer.cs
- PopupRoot.cs
- ToolBar.cs
- WebErrorHandler.cs
- NameValuePermission.cs
- MatrixAnimationUsingPath.cs
- IgnoreSectionHandler.cs
- WinEventWrap.cs
- ExternalFile.cs
- ThrowHelper.cs
- ListView.cs
- PersistenceTypeAttribute.cs
- WasEndpointConfigContainer.cs
- TextFormatter.cs
- DataPager.cs
- RewritingPass.cs
- ImageListUtils.cs
- NetNamedPipeBindingCollectionElement.cs
- FragmentQueryProcessor.cs
- DatePicker.cs
- Vector3D.cs
- CodeGroup.cs
- ThreadExceptionEvent.cs
- TransformGroup.cs
- HttpAsyncResult.cs
- AlgoModule.cs
- SrgsElementFactory.cs
- Input.cs
- RIPEMD160Managed.cs
- DBDataPermission.cs
- StyleXamlTreeBuilder.cs
- NetDataContractSerializer.cs
- SafeWaitHandle.cs
- CodeRegionDirective.cs
- CodeAccessPermission.cs
- TextLineResult.cs
- SqlStatistics.cs
- cookie.cs
- Image.cs
- SqlConnectionManager.cs
- IQueryable.cs
- EffectiveValueEntry.cs
- SmtpException.cs